Skip to content

Commit 6b07ea7

Browse files
Jiri Slaby (SUSE)Wolfram Sang
authored andcommitted
i2c: mux: pca954x: Use dev_fwnode()
irq_domain_create_simple() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using of_node with of_fwnode_handle(). So use the dev_fwnode() helper. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> [wsa: proper commit header] Signed-off-by: Wolfram Sang <[email protected]>
1 parent 546b632 commit 6b07ea7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/i2c/muxes/i2c-mux-pca954x.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@ static int pca954x_irq_setup(struct i2c_mux_core *muxc)
442442

443443
raw_spin_lock_init(&data->lock);
444444

445-
data->irq = irq_domain_create_linear(of_fwnode_handle(client->dev.of_node),
446-
data->chip->nchans,
445+
data->irq = irq_domain_create_linear(dev_fwnode(&client->dev), data->chip->nchans,
447446
&irq_domain_simple_ops, data);
448447
if (!data->irq)
449448
return -ENODEV;

0 commit comments

Comments
 (0)