Input: Allow compile test of Goodix and Colibri VF50 if !GPIOLIB
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.
If COMPILE_TEST is enabled, relax the dependency on GPIOLIB for the
recently introduced or relaxed symbols TOUCHSCREEN_GOODIX and
TOUCHSCREEN_COLIBRI_VF50.
Arnd Bergmann [Mon, 25 Jan 2016 16:44:12 +0000 (17:44 +0100)]
thermal: allow u8500-thermal driver to be a module
When the thermal subsystem is a loadable module, the u8500 driver
fails to build:
drivers/thermal/built-in.o: In function `db8500_thermal_probe':
db8500_thermal.c:(.text+0x96c): undefined reference to `thermal_zone_device_register'
drivers/thermal/built-in.o: In function `db8500_thermal_work':
db8500_thermal.c:(.text+0xab4): undefined reference to `thermal_zone_device_update'
This changes the symbol to a tristate, so Kconfig can track the
dependency correctly.
Arnd Bergmann [Mon, 25 Jan 2016 16:44:11 +0000 (17:44 +0100)]
thermal: allow spear-thermal driver to be a module
When the thermal subsystem is a loadable module, the spear driver
fails to build:
drivers/thermal/built-in.o: In function `spear_thermal_exit':
spear_thermal.c:(.text+0xf8): undefined reference to `thermal_zone_device_unregister'
drivers/thermal/built-in.o: In function `spear_thermal_probe':
spear_thermal.c:(.text+0x230): undefined reference to `thermal_zone_device_register'
This changes the symbol to a tristate, so Kconfig can track the
dependency correctly.
Arnd Bergmann [Mon, 25 Jan 2016 16:44:10 +0000 (17:44 +0100)]
thermal: spear: use __maybe_unused for PM functions
The spear thermal driver hides its suspend/resume function conditionally
based on CONFIG_PM, but references them based on CONFIG_PM_SLEEP, so
we get a warning if the former is set but the latter is not:
thermal/spear_thermal.c:58:12: warning: 'spear_thermal_suspend' defined but not used [-Wunused-function]
thermal/spear_thermal.c:75:12: warning: 'spear_thermal_resume' defined but not used [-Wunused-function]
This removes the #ifdef and instead uses a __maybe_uninitialized
annotation to avoid the warning and improve compile-time coverage.
This patch enables to use thermal-zone on DT if it was calles as
"renesas,rcar-thermal-gen2".
Previous style (= non thermal-zone) is still supported by
"renesas,rcar-thermal" to keep compatibility for "git bisect".
* pm-cpufreq: (22 commits)
cpufreq: governor: Drop pointless goto from cpufreq_governor_init()
cpufreq: governor: Rename skip_work to work_count
cpufreq: governor: Symmetrize cpu_dbs_info initialization and cleanup
cpufreq: governor: Rearrange governor data structures
cpufreq: governor: Simplify cpufreq_governor_limits()
cpufreq: governor: Drop cpu argument from dbs_check_cpu()
cpufreq: governor: Rename cpu_common_dbs_info to policy_dbs_info
cpufreq: governor: Drop the gov pointer from struct dbs_data
cpufreq: governor: Rework cpufreq_governor_dbs()
cpufreq: governor: Rename some data types and variables
cpufreq: governor: Put governor structure into common_dbs_data
cpufreq: governor: Avoid passing dbs_data pointers around unnecessarily
cpufreq: governor: Use common mutex for dbs_data protection
cpufreq: governor: Replace timers with utilization update callbacks
cpufreq: intel_pstate: Replace timers with utilization update callbacks
cpufreq: Add a mechanism for registering utilization update callbacks
cpufreq: powernv: Replace pr_info with trace print for throttle event
cpufreq: powernv/tracing: Add powernv_throttle tracepoint
cpufreq: powernv: Remove cpu_to_chip_id() from hot-path
cpufreq: powernv: Hot-plug safe the kworker thread
...
cpufreq: governor: Symmetrize cpu_dbs_info initialization and cleanup
Make the initialization of struct cpu_dbs_info objects in
alloc_policy_dbs_info() and the code that cleans them up in
free_policy_dbs_info() more symmetrical. In particular,
set/clear the update_util.func field in those functions along
with the policy_dbs field.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>