Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: da9063: Occupy second I2C address

The second address can be used as a shortcut to access register pages
2+3. The driver does not use this feature yet. The second address should
still be marked as used, otherwise userspace could interfere with the
driver.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Link: https://patch.msgid.link/20251023065610.2855-2-wsa+renesas@sang-engineering.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Wolfram Sang and committed by
Lee Jones
18597dbc 78bf081d

+3
+3
drivers/mfd/da9063-i2c.c
··· 469 469 } 470 470 } 471 471 472 + /* Reserve our unused second address so userspace won't interfere */ 473 + devm_i2c_new_dummy_device(&i2c->dev, i2c->adapter, i2c->addr + 1); 474 + 472 475 return da9063_device_init(da9063, i2c->irq); 473 476 } 474 477