lp87565.c (1724c7c0c9494dcbdd7f630f29e1e8427cb231d1) | lp87565.c (ea3993a9bdb77375a91e88b5e5f853474b095dd5) |
---|---|
1/* 2 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ 3 * 4 * Author: Keerthy <j-keerthy@ti.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation version 2. --- 59 unchanged lines hidden (view full) --- 68 lp87565->rev = otpid & LP87565_OTP_REV_OTP_ID; 69 70 of_id = of_match_device(of_lp87565_match_table, &client->dev); 71 if (of_id) 72 lp87565->dev_type = (enum lp87565_device_type)of_id->data; 73 74 i2c_set_clientdata(client, lp87565); 75 | 1/* 2 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ 3 * 4 * Author: Keerthy <j-keerthy@ti.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation version 2. --- 59 unchanged lines hidden (view full) --- 68 lp87565->rev = otpid & LP87565_OTP_REV_OTP_ID; 69 70 of_id = of_match_device(of_lp87565_match_table, &client->dev); 71 if (of_id) 72 lp87565->dev_type = (enum lp87565_device_type)of_id->data; 73 74 i2c_set_clientdata(client, lp87565); 75 |
76 ret = mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO, lp87565_cells, 77 ARRAY_SIZE(lp87565_cells), NULL, 0, NULL); 78 79 return ret; | 76 return devm_mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO, 77 lp87565_cells, ARRAY_SIZE(lp87565_cells), 78 NULL, 0, NULL); |
80} 81 82static const struct i2c_device_id lp87565_id_table[] = { 83 { "lp87565-q1", 0 }, 84 { }, 85}; 86MODULE_DEVICE_TABLE(i2c, lp87565_id_table); 87 --- 13 unchanged lines hidden --- | 79} 80 81static const struct i2c_device_id lp87565_id_table[] = { 82 { "lp87565-q1", 0 }, 83 { }, 84}; 85MODULE_DEVICE_TABLE(i2c, lp87565_id_table); 86 --- 13 unchanged lines hidden --- |