g762.c (cb54b53adae70701bdd77d848cea4b9b39b61cf9) | g762.c (a8b3a3a53f9a814e9938ea9cc179086ff5c0a387) |
---|---|
1/* 2 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed 3 * PWM controller chips from G762 family, i.e. G762 and G763 4 * 5 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org> 6 * 7 * This work is based on a basic version for 2.6.31 kernel developed 8 * by Olivier Mouchet for LaCie. Updates and correction have been --- 703 unchanged lines hidden (view full) --- 712 713/* 714 * Helper to import hardware characteristics from .dts file and push 715 * those to the chip. 716 */ 717 718static int g762_pdata_prop_import(struct i2c_client *client) 719{ | 1/* 2 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed 3 * PWM controller chips from G762 family, i.e. G762 and G763 4 * 5 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org> 6 * 7 * This work is based on a basic version for 2.6.31 kernel developed 8 * by Olivier Mouchet for LaCie. Updates and correction have been --- 703 unchanged lines hidden (view full) --- 712 713/* 714 * Helper to import hardware characteristics from .dts file and push 715 * those to the chip. 716 */ 717 718static int g762_pdata_prop_import(struct i2c_client *client) 719{ |
720 struct g762_platform_data *pdata = client->dev.platform_data; | 720 struct g762_platform_data *pdata = dev_get_platdata(&client->dev); |
721 int ret; 722 723 if (!pdata) 724 return 0; 725 726 ret = do_set_fan_gear_mode(&client->dev, pdata->fan_gear_mode); 727 if (ret) 728 return ret; --- 421 unchanged lines hidden --- | 721 int ret; 722 723 if (!pdata) 724 return 0; 725 726 ret = do_set_fan_gear_mode(&client->dev, pdata->fan_gear_mode); 727 if (ret) 728 return ret; --- 421 unchanged lines hidden --- |