File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ struct st7571_panel_constraints {
92
92
93
93
struct st7571_panel_data {
94
94
int (* init )(struct st7571_device * st7571 );
95
+ int (* parse_dt )(struct st7571_device * st7571 );
95
96
struct st7571_panel_constraints constraints ;
96
97
};
97
98
@@ -881,7 +882,7 @@ static int st7571_probe(struct i2c_client *client)
881
882
i2c_set_clientdata (client , st7571 );
882
883
st7571 -> pdata = device_get_match_data (& client -> dev );
883
884
884
- ret = st7571_parse_dt (st7571 );
885
+ ret = st7571 -> pdata -> parse_dt (st7571 );
885
886
if (ret )
886
887
return ret ;
887
888
@@ -964,6 +965,7 @@ static void st7571_remove(struct i2c_client *client)
964
965
965
966
struct st7571_panel_data st7571_config = {
966
967
.init = st7571_lcd_init ,
968
+ .parse_dt = st7571_parse_dt ,
967
969
.constraints = {
968
970
.min_nlines = 1 ,
969
971
.max_nlines = 128 ,
You can’t perform that action at this time.
0 commit comments