ctwov:change sar sensor driver

----compaly with the lastest compliation rules

Change-Id: Iad1434de6121f6cb3779b15e7ea039ac78215431
Signed-off-by: qiurp1 <qiurp1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2777235
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Jiyue Cui <cuijy2@lenovo.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
This commit is contained in:
qiurp1 2023-10-26 10:21:40 +08:00 • committed by qiurp1
commit ca67639019

View file

@ -1528,7 +1528,11 @@ Hardware_CheckFail:
* \param client Pointer to i2c_client struct
* \return Value 0
*/
#if KERNEL_VERSION(6, 1, 0) > LINUX_VERSION_CODE
static int sx937x_remove(struct i2c_client *client)
#else
static void sx937x_remove(struct i2c_client *client)
#endif
{
psx937x_platform_data_t pplatData =0;
struct _buttonInfo *pCurrentbutton;
@ -1563,7 +1567,10 @@ static int sx937x_remove(struct i2c_client *client)
}
}
}
return 0;
#if KERNEL_VERSION(6, 1, 0) > LINUX_VERSION_CODE
return 0;
#endif
}
/*====================================================*/
/***** Kernel Suspend *****/