hwmon: (vt8231) Introduce a #define for the driver name and use it
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 20 Sep 2022 13:56:16 +0000 (15:56 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Sep 2022 21:22:11 +0000 (14:22 -0700)
commit6c7c469c8074e2bb20c41592f28b81925988b1a7
treeb60d944c833363a183249dc1f4b22c35216db584
parent070affa898d2afc64a9633880a520ad21c8cf5cc
hwmon: (vt8231) Introduce a #define for the driver name and use it

Make use of the cpp symbol DRIVER_NAME to set the driver's name and use
it instead of all explicit usages of the same string. Also make use of
it instead of vt8231_driver.driver.name which breaks a cyclic dependency
between vt8231_probe() and vt8231_driver that in the next commit allows
to drop some forward declarations.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220920135617.1046361-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/vt8231.c