mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
regmap: irq: Use one way of setting all bits in the register
Currently there are two ways of how we represent all bits set, i.e. UINT_MAX and GENMASK(31, 0). Use the former as the single way of doing that, which is crystal clear on how we fill the unsigned int value. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250206191644.1132869-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
995cf0e014
commit
153dbf4ada
|
|
@ -823,7 +823,7 @@ int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode,
|
|||
/* Ack masked but set interrupts */
|
||||
if (d->chip->no_status) {
|
||||
/* no status register so default to all active */
|
||||
d->status_buf[i] = GENMASK(31, 0);
|
||||
d->status_buf[i] = UINT_MAX;
|
||||
} else {
|
||||
reg = d->get_irq_reg(d, d->chip->status_base, i);
|
||||
ret = regmap_read(map, reg, &d->status_buf[i]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user