Use __le32_to_cpu() instead of __le16_to_cpu() to read the reg_id while processing the regdump callback. This made the fw_regs file shows all zeros on big endian platforms.
Also, a cast is made with max(sptr->extras_count, (int)(id - DBG_REG_DUMP_COUNT) + 1) to fix a compiler warning.
Use
__le32_to_cpu()
instead of__le16_to_cpu()
to read the reg_id while processing the regdump callback. This made the fw_regs file shows all zeros on big endian platforms.Also, a cast is made with
max(sptr->extras_count, (int)(id - DBG_REG_DUMP_COUNT) + 1)
to fix a compiler warning.