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:
Daniel Baluta 2014-03-09 16:13:00 +00:00 committed by Jonathan Cameron
parent 48edc37481
commit c9bf2373da

View File

@ -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)
{ {