File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ MODULE_DEVICE_TABLE(of, rt8973a_dt_match);
663663#ifdef CONFIG_PM_SLEEP
664664static int rt8973a_muic_suspend (struct device * dev )
665665{
666- struct i2c_client * i2c = container_of ( dev , struct i2c_client , dev );
666+ struct i2c_client * i2c = to_i2c_client ( dev );
667667 struct rt8973a_muic_info * info = i2c_get_clientdata (i2c );
668668
669669 enable_irq_wake (info -> irq );
@@ -673,7 +673,7 @@ static int rt8973a_muic_suspend(struct device *dev)
673673
674674static int rt8973a_muic_resume (struct device * dev )
675675{
676- struct i2c_client * i2c = container_of ( dev , struct i2c_client , dev );
676+ struct i2c_client * i2c = to_i2c_client ( dev );
677677 struct rt8973a_muic_info * info = i2c_get_clientdata (i2c );
678678
679679 disable_irq_wake (info -> irq );
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ MODULE_DEVICE_TABLE(of, sm5502_dt_match);
655655#ifdef CONFIG_PM_SLEEP
656656static int sm5502_muic_suspend (struct device * dev )
657657{
658- struct i2c_client * i2c = container_of ( dev , struct i2c_client , dev );
658+ struct i2c_client * i2c = to_i2c_client ( dev );
659659 struct sm5502_muic_info * info = i2c_get_clientdata (i2c );
660660
661661 enable_irq_wake (info -> irq );
@@ -665,7 +665,7 @@ static int sm5502_muic_suspend(struct device *dev)
665665
666666static int sm5502_muic_resume (struct device * dev )
667667{
668- struct i2c_client * i2c = container_of ( dev , struct i2c_client , dev );
668+ struct i2c_client * i2c = to_i2c_client ( dev );
669669 struct sm5502_muic_info * info = i2c_get_clientdata (i2c );
670670
671671 disable_irq_wake (info -> irq );
You can’t perform that action at this time.
0 commit comments