hwmon: (gpio-fan) Get rid of platform data struct
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Sep 2017 23:09:08 +0000 (01:09 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Oct 2017 01:36:03 +0000 (18:36 -0700)
commitb5482f7e6cc5639440bfa0b9bb4a3a9732883f53
treec6e2092a3679188358eadbb3bf110b4ac3c34a2c
parenta9b4c8afcd3d6c2b068e6ecf1a22ab26dd8c200e
hwmon: (gpio-fan) Get rid of platform data struct

We are not passing the platform data struct into the driver from the
outside, there is no point of having it around separately so instead
of first populating the platform data struct and assigning the result
into the same variables in the state container (struct gpio_fan_data)
just assign the configuration from the device tree directly into the
state container members.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c