We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3d453 commit a319cb3Copy full SHA for a319cb3
sound/soc/codecs/cs4265.c
@@ -626,6 +626,16 @@ static int cs4265_i2c_probe(struct i2c_client *i2c_client,
626
ARRAY_SIZE(cs4265_dai));
627
}
628
629
+static int cs4265_i2c_remove(struct i2c_client *i2c)
630
+{
631
+ struct cs4265_private *cs4265 = i2c_get_clientdata(i2c);
632
+
633
+ if (cs4265->reset_gpio)
634
+ gpiod_set_value_cansleep(cs4265->reset_gpio, 0);
635
636
+ return 0;
637
+}
638
639
static const struct of_device_id cs4265_of_match[] = {
640
{ .compatible = "cirrus,cs4265", },
641
{ }
@@ -645,6 +655,7 @@ static struct i2c_driver cs4265_i2c_driver = {
645
655
},
646
656
.id_table = cs4265_id,
647
657
.probe = cs4265_i2c_probe,
658
+ .remove = cs4265_i2c_remove,
648
659
};
649
660
650
661
module_i2c_driver(cs4265_i2c_driver);
0 commit comments