mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
input: sensors: accel: da223: Fix compilation errors on kernel 6.1
drivers/input/sensors/accel/da223_cust.c:286:142: error: 'printk' undeclared here (not in a function); did you mean '_printk'? Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I180c5fa59c92eaf956c3819aefe70ae115e4ee4c
This commit is contained in:
@@ -281,9 +281,9 @@ static void msdelay(int ms)
|
||||
/******************************************************************************/
|
||||
|
||||
#if MIR3DA_OFFSET_TEMP_SOLUTION
|
||||
static MIR_GENERAL_OPS_DECLARE(ops_handle, i2c_smbus_read, i2c_smbus_read_block, i2c_smbus_write, sensor_sync_write, sensor_sync_read, check_califolder_exist,get_address,support_fast_auto_cali,msdelay, printk, sprintf);
|
||||
static MIR_GENERAL_OPS_DECLARE(ops_handle, i2c_smbus_read, i2c_smbus_read_block, i2c_smbus_write, sensor_sync_write, sensor_sync_read, check_califolder_exist,get_address,support_fast_auto_cali,msdelay, _printk, sprintf);
|
||||
#else
|
||||
static MIR_GENERAL_OPS_DECLARE(ops_handle, i2c_smbus_read, i2c_smbus_read_block, i2c_smbus_write, NULL, NULL, NULL,get_address,NULL,msdelay, printk, sprintf);
|
||||
static MIR_GENERAL_OPS_DECLARE(ops_handle, i2c_smbus_read, i2c_smbus_read_block, i2c_smbus_write, NULL, NULL, NULL,get_address,NULL,msdelay, _printk, sprintf);
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user