hwmon: (f75375s) Make pwm*_mode writable for the F75387
authorNikolaus Schulz <mail@microschulz.de>
Tue, 28 Feb 2012 21:15:52 +0000 (22:15 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 28 Feb 2012 22:44:02 +0000 (14:44 -0800)
Signed-off-by: Nikolaus Schulz <mail@microschulz.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/f75375s.c

index 61cc9c396a9872920a9db553e6c0bd5ca3ebde18..eb648d9c91d6890f5335dc3ffc31e548beaf2955 100644 (file)
@@ -795,7 +795,7 @@ static int f75375_probe(struct i2c_client *client,
        if (err)
                goto exit_free;
 
-       if (data->kind == f75375) {
+       if (data->kind != f75373) {
                err = sysfs_chmod_file(&client->dev.kobj,
                        &sensor_dev_attr_pwm1_mode.dev_attr.attr,
                        S_IRUGO | S_IWUSR);