summaryrefslogtreecommitdiff
path: root/drivers/hwmon/chipcap2.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2025-09-09 06:10:07 -0700
committerGuenter Roeck <linux@roeck-us.net>2025-10-17 07:18:15 -0700
commit4c8d758d4ebff3780d09599f2c8db5d6af3ca2af (patch)
treeaf82b773f9d5967257cc339aa42ac54d0888961c /drivers/hwmon/chipcap2.c
parentb4306c0c8e24f9e031185fb87de45391bc8c7fe9 (diff)
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 <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/chipcap2.c')
-rw-r--r--drivers/hwmon/chipcap2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/hwmon/chipcap2.c b/drivers/hwmon/chipcap2.c
index 9d071f7ca9d2..645b8c2e704e 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");