drivers: eeprom: at2x: remove '&' when assigning init_fn
To maintain consistency in `init_fn` parameter passing,
remove the address-of operator ('&') when assigning the `init_fn`
function pointer in the `DEVICE_DT_INST_DEFINE` macro.
Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
parent
b51f998063
commit
3a67013ef1
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ static DEVICE_API(eeprom, eeprom_at2x_api) = {
|
|||
.write_fn = eeprom_at##t##_write, \
|
||||
}; \
|
||||
static struct eeprom_at2x_data eeprom_at##t##_data_##n; \
|
||||
DEVICE_DT_DEFINE(INST_DT_AT2X(n, t), &eeprom_at2x_init, \
|
||||
DEVICE_DT_DEFINE(INST_DT_AT2X(n, t), eeprom_at2x_init, \
|
||||
NULL, &eeprom_at##t##_data_##n, \
|
||||
&eeprom_at##t##_config_##n, POST_KERNEL, \
|
||||
CONFIG_EEPROM_AT2X_INIT_PRIORITY, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue