File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -109,22 +109,22 @@ static struct vcnl3020_property vcnl3020_led_current_property = {
109
109
};
110
110
111
111
static int vcnl3020_get_and_apply_property (struct vcnl3020_data * data ,
112
- struct vcnl3020_property prop )
112
+ struct vcnl3020_property * prop )
113
113
{
114
114
int rc ;
115
115
u32 val ;
116
116
117
- rc = device_property_read_u32 (data -> dev , prop . name , & val );
117
+ rc = device_property_read_u32 (data -> dev , prop -> name , & val );
118
118
if (rc )
119
119
return 0 ;
120
120
121
- if (prop . conversion_func )
122
- prop . conversion_func (& val );
121
+ if (prop -> conversion_func )
122
+ prop -> conversion_func (& val );
123
123
124
- rc = regmap_write (data -> regmap , prop . reg , val );
124
+ rc = regmap_write (data -> regmap , prop -> reg , val );
125
125
if (rc ) {
126
126
dev_err (data -> dev , "Error (%d) setting property (%s)\n" ,
127
- rc , prop . name );
127
+ rc , prop -> name );
128
128
}
129
129
130
130
return rc ;
@@ -153,7 +153,7 @@ static int vcnl3020_init(struct vcnl3020_data *data)
153
153
mutex_init (& data -> lock );
154
154
155
155
return vcnl3020_get_and_apply_property (data ,
156
- vcnl3020_led_current_property );
156
+ & vcnl3020_led_current_property );
157
157
};
158
158
159
159
static bool vcnl3020_is_in_periodic_mode (struct vcnl3020_data * data )
You can’t perform that action at this time.
0 commit comments