Skip to contentSkip to conversation

make ad7414_update_device() static

PATCH In review Adrian Bunk 3 participants 3 messages Aug 10, 2008 – Aug 11, 2008 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make ad7414_update_device() static

This patch makes the needlessly global ad7414_update_device() static.

---
aa3c1d5758663dffa995ae2a0a21fa7b172c371c

drivers/hwmon/ad7414.c +1 -1
index ce8d94f..bfda8c8 100644
@@ -69,7 +69,7 @@ static inline int ad7414_write(struct i2c_client *client, u8 reg, u8 value)
 	return i2c_smbus_write_byte_data(client, reg, value);
 }
 
-struct ad7414_data *ad7414_update_device(struct device *dev)
+static struct ad7414_data *ad7414_update_device(struct device *dev)
 {
 	struct i2c_client *client = to_i2c_client(dev);
 	struct ad7414_data *data = i2c_get_clientdata(client);

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Mon, 11 Aug 2008 00:08:36 +0300 "Adrian Bunk" <[email protected]> wrote:

This patch makes the needlessly global ad7414_update_device() static.

Sorry, my mistake. This is a leftover from when I was calling this function from another driver.

Cheers,
Sean

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Adrian Bunk
Quoted 11 lines · Sean MacLennan
Quoted 3 lines · On Mon, 11 Aug 2008 00:08:36 +0300 "Adrian Bunk" <[email protected]> wrote:

This patch makes the needlessly global ad7414_update_device() static.

Sorry, my mistake. This is a leftover from when I was calling this function from another driver.

Added to jdelvare-hwmon for 2.6.28.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors