From a213618173c8d31c88de97d4c0c23735c78336c1 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Tue, 12 Mar 2024 10:52:34 +0800 Subject: [PATCH] input: sensors: accel: mc3230: Fix compilation error when enable early suspend drivers/input/sensors/accel/mc3230.c:150:29: error: unused variable 'mc3230_early_suspend' [-Werror,-Wunused-variable] Signed-off-by: Finley Xiao Change-Id: I01c26adcd5750343f938918113cb2bab70319555 --- drivers/input/sensors/accel/mc3230.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/sensors/accel/mc3230.c b/drivers/input/sensors/accel/mc3230.c index 6a41441d9856..a2278b452b38 100644 --- a/drivers/input/sensors/accel/mc3230.c +++ b/drivers/input/sensors/accel/mc3230.c @@ -146,10 +146,6 @@ static int g_value; /* Addresses to scan -- protected by sense_data_mutex */ static struct i2c_client *this_client; -#ifdef CONFIG_HAS_EARLYSUSPEND -static struct early_suspend mc3230_early_suspend; -#endif - /* status */ #define MC3230_OPEN 1 #define MC3230_CLOSE 0