diff options
| author | Arnd Bergmann <[email protected]> | 2014-06-04 14:46:00 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2014-06-04 15:33:39 +0000 |
| commit | b14903e10a06347234b387f7364f86aa07252d9f (patch) | |
| tree | c75b7cb3aa0693ffd48a8f8821167abeb11d4784 /tools/perf/scripts/python/sctop.py | |
| parent | Linux 3.15-rc1 (diff) | |
| download | kernel-b14903e10a06347234b387f7364f86aa07252d9f.tar.gz kernel-b14903e10a06347234b387f7364f86aa07252d9f.zip | |
regulator: add regulator_can_change_voltage stub
When CONFIG_REGULATOR is not set, we cannot call
regulator_can_change_voltage() from a device driver, which results
in a build error like
video/fbdev/omap2/dss/hdmi5.c: In function 'hdmi_init_regulator':
video/fbdev/omap2/dss/hdmi5.c:149:2: error: implicit declaration of function 'regulator_can_change_voltage' [-Werror=implicit-function-declaration]
even for drivers that don't require the regulator API normally.
Such a use was recently added in the omap2+ hdmi driver.
This avoids the problem by adding a static inline function
stub in the API header, as we have for most of the other
regulator functions as well.
Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
