sma1303.c (5b28c049ff53cf49e3a97d80cebd2e9c2779ea96) | sma1303.c (30cf002579969120ce926dffa3630afbb2ae899f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2// 3// sma1303.c -- sma1303 ALSA SoC Audio driver 4// 5// Copyright 2023 Iron Device Corporation 6// 7// Auther: Gyuhwa Park <gyuhwa.park@irondevice.com> 8// Kiseok Jo <kiseok.jo@irondevice.com> --- 1583 unchanged lines hidden (view full) --- 1592 &dev_attr_check_fault_status.attr, 1593 NULL, 1594}; 1595 1596static struct attribute_group sma1303_attr_group = { 1597 .attrs = sma1303_attr, 1598}; 1599 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2// 3// sma1303.c -- sma1303 ALSA SoC Audio driver 4// 5// Copyright 2023 Iron Device Corporation 6// 7// Auther: Gyuhwa Park <gyuhwa.park@irondevice.com> 8// Kiseok Jo <kiseok.jo@irondevice.com> --- 1583 unchanged lines hidden (view full) --- 1592 &dev_attr_check_fault_status.attr, 1593 NULL, 1594}; 1595 1596static struct attribute_group sma1303_attr_group = { 1597 .attrs = sma1303_attr, 1598}; 1599 |
1600static int sma1303_i2c_probe(struct i2c_client *client, 1601 const struct i2c_device_id *id) | 1600static int sma1303_i2c_probe(struct i2c_client *client) |
1602{ 1603 struct sma1303_priv *sma1303; 1604 struct device_node *np = client->dev.of_node; 1605 int ret, i = 0; 1606 u32 value = 0; 1607 unsigned int device_info, status, otp_stat; 1608 1609 sma1303 = devm_kzalloc(&client->dev, --- 176 unchanged lines hidden (view full) --- 1786}; 1787MODULE_DEVICE_TABLE(of, sma1303_of_match); 1788 1789static struct i2c_driver sma1303_i2c_driver = { 1790 .driver = { 1791 .name = "sma1303", 1792 .of_match_table = sma1303_of_match, 1793 }, | 1601{ 1602 struct sma1303_priv *sma1303; 1603 struct device_node *np = client->dev.of_node; 1604 int ret, i = 0; 1605 u32 value = 0; 1606 unsigned int device_info, status, otp_stat; 1607 1608 sma1303 = devm_kzalloc(&client->dev, --- 176 unchanged lines hidden (view full) --- 1785}; 1786MODULE_DEVICE_TABLE(of, sma1303_of_match); 1787 1788static struct i2c_driver sma1303_i2c_driver = { 1789 .driver = { 1790 .name = "sma1303", 1791 .of_match_table = sma1303_of_match, 1792 }, |
1794 .probe = sma1303_i2c_probe, | 1793 .probe_new = sma1303_i2c_probe, |
1795 .remove = sma1303_i2c_remove, 1796 .id_table = sma1303_i2c_id, 1797}; 1798 1799module_i2c_driver(sma1303_i2c_driver); 1800 1801MODULE_DESCRIPTION("ALSA SoC SMA1303 driver"); 1802MODULE_AUTHOR("Gyuhwa Park, <gyuhwa.park@irondevice.com>"); 1803MODULE_AUTHOR("Kiseok Jo, <kiseok.jo@irondevice.com>"); 1804MODULE_LICENSE("GPL v2"); | 1794 .remove = sma1303_i2c_remove, 1795 .id_table = sma1303_i2c_id, 1796}; 1797 1798module_i2c_driver(sma1303_i2c_driver); 1799 1800MODULE_DESCRIPTION("ALSA SoC SMA1303 driver"); 1801MODULE_AUTHOR("Gyuhwa Park, <gyuhwa.park@irondevice.com>"); 1802MODULE_AUTHOR("Kiseok Jo, <kiseok.jo@irondevice.com>"); 1803MODULE_LICENSE("GPL v2"); |