> > - if (!i2c_check_functionality(client->adapter,
> > - I2C_FUNC_PROTOCOL_MANGLING)) {
> > + type = (enum mms_type)device_get_match_data(&client->dev);
>
> you don't need any cast here.sorry, please ignore :) Andi
> > - if (!i2c_check_functionality(client->adapter,
> > - I2C_FUNC_PROTOCOL_MANGLING)) {
> > + type = (enum mms_type)device_get_match_data(&client->dev);
>
> you don't need any cast here.sorry, please ignore :) Andi