File tree 1 file changed +15
-10
lines changed
meta-arduino-bsp/recipes-kernel/kernel-modules/atmel-mxt-ts
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -3082,11 +3082,25 @@ static const struct dmi_system_id chromebook_T9_suspend_dmi[] = {
3082
3082
{ }
3083
3083
};
3084
3084
3085
- static int mxt_probe (struct i2c_client * client , const struct i2c_device_id * id )
3085
+ static const struct i2c_device_id mxt_id [] = {
3086
+ { "qt602240_ts" , 0 },
3087
+ { "atmel_mxt_ts" , 0 },
3088
+ { "atmel_mxt_tp" , 0 },
3089
+ { "maxtouch" , 0 },
3090
+ { "mXT224" , 0 },
3091
+ { }
3092
+ };
3093
+ MODULE_DEVICE_TABLE (i2c , mxt_id );
3094
+
3095
+ static int mxt_probe (struct i2c_client * client )
3086
3096
{
3087
3097
struct mxt_data * data ;
3088
3098
int error ;
3089
3099
3100
+ const struct i2c_device_id * id = i2c_match_id (mxt_id , client );
3101
+
3102
+ if (!id )
3103
+ return - ENODEV ;
3090
3104
/*
3091
3105
* Ignore devices that do not have device properties attached to
3092
3106
* them, as we need help determining whether we are dealing with
@@ -3251,15 +3265,6 @@ static const struct acpi_device_id mxt_acpi_id[] = {
3251
3265
MODULE_DEVICE_TABLE (acpi , mxt_acpi_id );
3252
3266
#endif
3253
3267
3254
- static const struct i2c_device_id mxt_id [] = {
3255
- { "qt602240_ts" , 0 },
3256
- { "atmel_mxt_ts" , 0 },
3257
- { "atmel_mxt_tp" , 0 },
3258
- { "maxtouch" , 0 },
3259
- { "mXT224" , 0 },
3260
- { }
3261
- };
3262
- MODULE_DEVICE_TABLE (i2c , mxt_id );
3263
3268
3264
3269
static struct i2c_driver mxt_driver = {
3265
3270
.driver = {
You can’t perform that action at this time.
0 commit comments