Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-7
-7
drivers/hwmon/chipcap2.c
··· 81 81 struct completion complete; 82 82 struct device *hwmon; 83 83 struct i2c_client *client; 84 - struct mutex dev_access_lock; /* device access lock */ 85 84 struct regulator *regulator; 86 85 const char *name; 87 86 int irq_ready; ··· 557 558 { 558 559 struct cc2_data *data = dev_get_drvdata(dev); 559 560 560 - guard(mutex)(&data->dev_access_lock); 561 - 562 561 switch (type) { 563 562 case hwmon_temp: 564 563 return cc2_measurement(data, type, val); ··· 596 599 597 600 if (val < 0 || val > CC2_RH_MAX) 598 601 return -EINVAL; 599 - 600 - guard(mutex)(&data->dev_access_lock); 601 602 602 603 switch (attr) { 603 604 case hwmon_humidity_min: ··· 702 707 return -ENOMEM; 703 708 704 709 i2c_set_clientdata(client, data); 705 - 706 - mutex_init(&data->dev_access_lock); 707 710 708 711 data->client = client; 709 712