]> Pileus Git - ~andy/linux/blobdiff - drivers/hwmon/max1668.c
drm/i915: gen7: Implement an L3 caching workaround.
[~andy/linux] / drivers / hwmon / max1668.c
index 20d1b2ddffb633fbc8b555a8818e0cab479c4cfa..88953f99e91437da56a3cad38f593141b3d2e98f 100644 (file)
@@ -59,7 +59,7 @@ static unsigned short max1668_addr_list[] = {
 #define DEV_ID_MAX1989         0xb
 
 /* read only mode module parameter */
-static int read_only;
+static bool read_only;
 module_param(read_only, bool, 0);
 MODULE_PARM_DESC(read_only, "Don't set any values, read only mode");
 
@@ -335,10 +335,10 @@ static struct attribute *max1668_attribute_unique[] = {
        NULL
 };
 
-static mode_t max1668_attribute_mode(struct kobject *kobj,
+static umode_t max1668_attribute_mode(struct kobject *kobj,
                                     struct attribute *attr, int index)
 {
-       int ret = S_IRUGO;
+       umode_t ret = S_IRUGO;
        if (read_only)
                return ret;
        if (attr == &sensor_dev_attr_temp1_max.dev_attr.attr ||