Skip to content

Commit 153dbf4

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent 995cf0e commit 153dbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/regmap/regmap-irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode,
823823
/* Ack masked but set interrupts */
824824
if (d->chip->no_status) {
825825
/* no status register so default to all active */
826-
d->status_buf[i] = GENMASK(31, 0);
826+
d->status_buf[i] = UINT_MAX;
827827
} else {
828828
reg = d->get_irq_reg(d, d->chip->status_base, i);
829829
ret = regmap_read(map, reg, &d->status_buf[i]);

0 commit comments

Comments
 (0)