return card_type_name[nt][type - 1];
}
-static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id)
+static int tifm_dev_match(struct tifm_dev *sock, const struct tifm_device_id *id)
{
if (sock->type == id->type)
return 1;
struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
const struct tifm_driver *fm_drv = container_of_const(drv, struct tifm_driver,
driver);
- struct tifm_device_id *ids = fm_drv->id_table;
+ const struct tifm_device_id *ids = fm_drv->id_table;
if (ids) {
while (ids->type) {
#endif /* CONFIG_PM */
-static struct tifm_device_id tifm_sd_id_tbl[] = {
+static const struct tifm_device_id tifm_sd_id_tbl[] = {
{ TIFM_TYPE_SD }, { }
};
MODULE_DEVICE_TABLE(tifm, tifm_sd_id_tbl);
};
struct tifm_driver {
- struct tifm_device_id *id_table;
+ const struct tifm_device_id *id_table;
int (*probe)(struct tifm_dev *dev);
void (*remove)(struct tifm_dev *dev);
int (*suspend)(struct tifm_dev *dev,