Skip to content

Commit 1a4b7ab

Browse files
soburikartben
authored andcommitted
drivers: input: ft5336: Correct referencing to unexists symbol
The `n` is a non-existent symbol. Changing it to the correct argument name to fix. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent d1c5e13 commit 1a4b7ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/input/input_ft5336.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int ft5336_pm_action(const struct device *dev,
294294
#endif
295295

296296
#define FT5336_INIT(index) \
297-
PM_DEVICE_DT_INST_DEFINE(n, ft5336_pm_action); \
297+
PM_DEVICE_DT_INST_DEFINE(index, ft5336_pm_action); \
298298
static const struct ft5336_config ft5336_config_##index = { \
299299
.common = INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT(index), \
300300
.bus = I2C_DT_SPEC_INST_GET(index), \
@@ -303,7 +303,7 @@ static int ft5336_pm_action(const struct device *dev,
303303
(.int_gpio = GPIO_DT_SPEC_INST_GET(index, int_gpios),)) \
304304
}; \
305305
static struct ft5336_data ft5336_data_##index; \
306-
DEVICE_DT_INST_DEFINE(index, ft5336_init, PM_DEVICE_DT_INST_GET(n), \
306+
DEVICE_DT_INST_DEFINE(index, ft5336_init, PM_DEVICE_DT_INST_GET(index), \
307307
&ft5336_data_##index, &ft5336_config_##index, \
308308
POST_KERNEL, CONFIG_INPUT_INIT_PRIORITY, NULL);
309309

0 commit comments

Comments
 (0)