extcon: Use dev_of_node(dev) instead of dev->of_node
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2023 14:40:01 +0000 (16:40 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:41:29 +0000 (23:41 +0900)
commit9b4aea51cbcaefacaac655392f360bb3929ab63d
treed95eeb42900f6bef44eb0c0400e83a9ff1779ebd
parent0146f56b91a8ad287e7c94ea340b95a7040d29cf
extcon: Use dev_of_node(dev) instead of dev->of_node

The dev_of_node function should be preferred.
In the result we may drop unneeded NULL check
of the pointer to the device object.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c