From: Guenter Roeck Date: Tue, 9 Sep 2025 13:10:07 +0000 (-0700) Subject: hwmon: (chipcap2) Drop unnecessary include files X-Git-Tag: v6.19-rc1~148^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c8d758d4ebff3780d09599f2c8db5d6af3ca2af;p=thirdparty%2Flinux.git hwmon: (chipcap2) Drop unnecessary include files The driver does not perform any locking, does not execute or use any sleep related functionality, and does not allocate memory. Drop the unnecessary include files. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/chipcap2.c b/drivers/hwmon/chipcap2.c index 9d071f7ca9d2e..645b8c2e704e6 100644 --- a/drivers/hwmon/chipcap2.c +++ b/drivers/hwmon/chipcap2.c @@ -81,7 +81,6 @@ struct cc2_data { struct completion complete; struct device *hwmon; struct i2c_client *client; - struct mutex dev_access_lock; /* device access lock */ struct regulator *regulator; const char *name; int irq_ready; @@ -558,8 +557,6 @@ static int cc2_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, { struct cc2_data *data = dev_get_drvdata(dev); - guard(mutex)(&data->dev_access_lock); - switch (type) { case hwmon_temp: return cc2_measurement(data, type, val); @@ -600,8 +597,6 @@ static int cc2_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, if (val < 0 || val > CC2_RH_MAX) return -EINVAL; - guard(mutex)(&data->dev_access_lock); - switch (attr) { case hwmon_humidity_min: cmd = CC2_W_ALARM_L_ON; @@ -708,8 +703,6 @@ static int cc2_probe(struct i2c_client *client) i2c_set_clientdata(client, data); - mutex_init(&data->dev_access_lock); - data->client = client; data->regulator = devm_regulator_get_exclusive(dev, "vdd");