[PATCH] ALSA: hda/tas2781: Switch back to use struct i2c_driver's .probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



struct i2c_driver::probe_new is about to go away. Switch the driver to
use the probe callback with the same prototype.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
Hello,

this driver was introduced in next-20230821. As I plan to drop
.probe_new in next after v6.6-rc1, it would be great if this patch made
it in until then, too.

Thanks
Uwe

 sound/pci/hda/tas2781_hda_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c
index 35dafc4aec4f..cf62a87563ea 100644
--- a/sound/pci/hda/tas2781_hda_i2c.c
+++ b/sound/pci/hda/tas2781_hda_i2c.c
@@ -847,7 +847,7 @@ static struct i2c_driver tas2781_hda_i2c_driver = {
 		.pm		= &tas2781_hda_pm_ops,
 	},
 	.id_table	= tas2781_hda_i2c_id,
-	.probe_new	= tas2781_hda_i2c_probe,
+	.probe		= tas2781_hda_i2c_probe,
 	.remove		= tas2781_hda_i2c_remove,
 };
 module_i2c_driver(tas2781_hda_i2c_driver);

base-commit: 5be27f1e3ec98975c18a91e220d4847d0dec9671
-- 
2.40.1




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux