From: Nikolaus Schulz Date: Tue, 28 Feb 2012 21:15:52 +0000 (+0100) Subject: hwmon: (f75375s) Make pwm*_mode writable for the F75387 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edeea102857e33b5e9b17a3a2640da390732a693;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git hwmon: (f75375s) Make pwm*_mode writable for the F75387 Signed-off-by: Nikolaus Schulz Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c index 61cc9c396a98..eb648d9c91d6 100644 --- a/drivers/hwmon/f75375s.c +++ b/drivers/hwmon/f75375s.c @@ -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);