mfd: max77693: Store I2C device type as enum and add default unknown
[deliverable/linux.git] / include / linux / mfd / max77693-private.h
index ad67b8235a8d082a43bec64627a613160c51a410..e3c0afff38d3f81a9847d70bb4d51c0c394a0fcb 100644 (file)
@@ -529,13 +529,18 @@ enum max77693_irq_muic {
        MAX77693_MUIC_IRQ_NR,
 };
 
+enum max77693_types {
+       TYPE_MAX77693_UNKNOWN,
+       TYPE_MAX77693,
+};
+
 struct max77693_dev {
        struct device *dev;
        struct i2c_client *i2c;         /* 0xCC , PMIC, Charger, Flash LED */
        struct i2c_client *muic;        /* 0x4A , MUIC */
        struct i2c_client *haptic;      /* 0x90 , Haptic */
 
-       int type;
+       enum max77693_types type;
 
        struct regmap *regmap;
        struct regmap *regmap_muic;
@@ -549,8 +554,4 @@ struct max77693_dev {
        int irq;
 };
 
-enum max77693_types {
-       TYPE_MAX77693,
-};
-
 #endif /*  __LINUX_MFD_MAX77693_PRIV_H */
This page took 0.02591 seconds and 5 git commands to generate.