f75375s.c (bf61c8840efe60fd8f91446860b63338fb424158) | f75375s.c (a8b3a3a53f9a814e9938ea9cc179086ff5c0a387) |
---|---|
1/* 2 * f75375s.c - driver for the Fintek F75375/SP, F75373 and 3 * F75387SG/RG hardware monitoring features 4 * Copyright (C) 2006-2007 Riku Voipio 5 * 6 * Datasheets available at: 7 * 8 * f75375: --- 818 unchanged lines hidden (view full) --- 827 } 828 829} 830 831static int f75375_probe(struct i2c_client *client, 832 const struct i2c_device_id *id) 833{ 834 struct f75375_data *data; | 1/* 2 * f75375s.c - driver for the Fintek F75375/SP, F75373 and 3 * F75387SG/RG hardware monitoring features 4 * Copyright (C) 2006-2007 Riku Voipio 5 * 6 * Datasheets available at: 7 * 8 * f75375: --- 818 unchanged lines hidden (view full) --- 827 } 828 829} 830 831static int f75375_probe(struct i2c_client *client, 832 const struct i2c_device_id *id) 833{ 834 struct f75375_data *data; |
835 struct f75375s_platform_data *f75375s_pdata = client->dev.platform_data; | 835 struct f75375s_platform_data *f75375s_pdata = 836 dev_get_platdata(&client->dev); |
836 int err; 837 838 if (!i2c_check_functionality(client->adapter, 839 I2C_FUNC_SMBUS_BYTE_DATA)) 840 return -EIO; 841 data = devm_kzalloc(&client->dev, sizeof(struct f75375_data), 842 GFP_KERNEL); 843 if (!data) --- 81 unchanged lines hidden --- | 837 int err; 838 839 if (!i2c_check_functionality(client->adapter, 840 I2C_FUNC_SMBUS_BYTE_DATA)) 841 return -EIO; 842 data = devm_kzalloc(&client->dev, sizeof(struct f75375_data), 843 GFP_KERNEL); 844 if (!data) --- 81 unchanged lines hidden --- |