summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/ti-soc-thermal/ti-bandgap.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-02-29 22:05:32 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-03-12 11:56:53 +0100
commit7375f2ac6b2d5f42ebc42e25f5251aa3284f30ed (patch)
treef971543bee73ec9659a527687a7be87ced42b25c /drivers/thermal/ti-soc-thermal/ti-bandgap.h
parentthermal: Rephrase the Kconfig text for thermal (diff)
downloadlinux-7375f2ac6b2d5f42ebc42e25f5251aa3284f30ed.tar.xz
linux-7375f2ac6b2d5f42ebc42e25f5251aa3284f30ed.zip
thermal: ti-soc-thermal: Use GPIO descriptors
This switches the TI SoC thermal driver to use GPIO descriptors instead of retrieveing a GPIO number from the device tree and requesting the GPIO separately. Cc: Keerthy <j-keerthy@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200229210532.173430-1-linus.walleij@linaro.org
Diffstat (limited to 'drivers/thermal/ti-soc-thermal/ti-bandgap.h')
-rw-r--r--drivers/thermal/ti-soc-thermal/ti-bandgap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.h b/drivers/thermal/ti-soc-thermal/ti-bandgap.h
index bb9b0f7faf99..fce4657e9486 100644
--- a/drivers/thermal/ti-soc-thermal/ti-bandgap.h
+++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.h
@@ -13,6 +13,8 @@
#include <linux/types.h>
#include <linux/err.h>
+struct gpio_desc;
+
/**
* DOC: bandgap driver data structure
* ==================================
@@ -199,7 +201,7 @@ struct ti_bandgap {
struct clk *div_clk;
spinlock_t lock; /* shields this struct */
int irq;
- int tshut_gpio;
+ struct gpio_desc *tshut_gpiod;
u32 clk_rate;
};