On Sat, Aug 26, 2023 at 08:34:47PM +0100, Biju Das wrote: > Simpilfy probe() by replacing of_device_get_match_data() and id lookup for > retrieving match data by i2c_get_match_data(). > > While at it, drop local variable np from probe() by using dev->of_node. ... > + if (dev->of_node) { No, please use (it needed at all) the respective API. ... > - -EINVAL; > + -ENODEV ...being not explained. -- With Best Regards, Andy Shevchenko