aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-09-10 05:44:46 -0400
committerGuenter Roeck <linux@roeck-us.net>2017-10-29 21:36:03 -0400
commit186731145f920fb1514200043bcaf9c689693857 (patch)
tree1ba4a4b99bda0fb42cd79770a52f39979e1ee9ed /include/linux/platform_data
parent1b50b776355fa6c6d7b3281a63c275d5c18d629d (diff)
hwmon: (sht15) Root out platform data
After finding out there are active users of this sensor I noticed: - It has a single PXA27x board file using the platform data - The platform data is only used to carry two GPIO pins, all other fields are unused - The driver does not use GPIO descriptors but the legacy GPIO API I saw we can swiftly fix this by: - Killing off the platform data entirely - Define a GPIO descriptor lookup table in the board file - Use the standard devm_gpiod_get() to grab the GPIO descriptors from either the device tree or the board file table. This compiles, but needs testing. Cc: arm@kernel.org Cc: Marco Franchi <marco.franchi@nxp.com> Cc: Davide Hug <d@videhug.ch> Cc: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Marco Franchi <marco.franchi@nxp.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/sht15.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/linux/platform_data/sht15.h b/include/linux/platform_data/sht15.h
deleted file mode 100644
index 12289c1e9413..000000000000
--- a/include/linux/platform_data/sht15.h
+++ /dev/null
@@ -1,38 +0,0 @@
1/*
2 * sht15.h - support for the SHT15 Temperature and Humidity Sensor
3 *
4 * Copyright (c) 2009 Jonathan Cameron
5 *
6 * Copyright (c) 2007 Wouter Horre
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 *
12 * For further information, see the Documentation/hwmon/sht15 file.
13 */
14
15#ifndef _PDATA_SHT15_H
16#define _PDATA_SHT15_H
17
18/**
19 * struct sht15_platform_data - sht15 connectivity info
20 * @gpio_data: no. of gpio to which bidirectional data line is
21 * connected.
22 * @gpio_sck: no. of gpio to which the data clock is connected.
23 * @supply_mv: supply voltage in mv. Overridden by regulator if
24 * available.
25 * @checksum: flag to indicate the checksum should be validated.
26 * @no_otp_reload: flag to indicate no reload from OTP.
27 * @low_resolution: flag to indicate the temp/humidity resolution to use.
28 */
29struct sht15_platform_data {
30 int gpio_data;
31 int gpio_sck;
32 int supply_mv;
33 bool checksum;
34 bool no_otp_reload;
35 bool low_resolution;
36};
37
38#endif /* _PDATA_SHT15_H */