mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 05:15:03 +00:00
iio: accel: kxcjk-1013: Fix defined but unused warning
Noticed when compiling with CONFIG_PM_RUNTIME not set:
kxcjk-1013.c: warning: ‘kxcjk1013_get_startup_times’ defined but not used [-Wunused-function]
Introduced by commit 124e1b1d
(iio: accel: kxcjk-1013: support runtime pm).
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
48edc37481
commit
c9bf2373da
@ -358,6 +358,7 @@ static int kxcjk1013_chip_init(struct kxcjk1013_data *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM_RUNTIME
|
||||||
static int kxcjk1013_get_startup_times(struct kxcjk1013_data *data)
|
static int kxcjk1013_get_startup_times(struct kxcjk1013_data *data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -370,6 +371,7 @@ static int kxcjk1013_get_startup_times(struct kxcjk1013_data *data)
|
|||||||
|
|
||||||
return KXCJK1013_MAX_STARTUP_TIME_US;
|
return KXCJK1013_MAX_STARTUP_TIME_US;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on)
|
static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user