This is possible since *of_device_id.data became const. While at it also
drop a cast to const that was never needed.
[ukl: split Arnd's patch by driver and add changlog]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
        return 0;
 }
 
-static struct i2c_device_id da9052_i2c_id[] = {
+static const struct i2c_device_id da9052_i2c_id[] = {
        {"da9052", DA9052},
        {"da9053-aa", DA9053_AA},
        {"da9053-ba", DA9053_BA},
                const struct of_device_id *deviceid;
 
                deviceid = of_match_node(dialog_dt_ids, np);
-               id = (const struct i2c_device_id *)deviceid->data;
+               id = deviceid->data;
        }
 #endif