@@ -235,36 +235,6 @@ static ssize_t ti_eqep_position_ceiling_write(struct counter_device *counter,
235
235
return len ;
236
236
}
237
237
238
- static ssize_t ti_eqep_position_floor_read (struct counter_device * counter ,
239
- struct counter_count * count ,
240
- void * ext_priv , char * buf )
241
- {
242
- struct ti_eqep_cnt * priv = counter -> priv ;
243
- u32 qposinit ;
244
-
245
- regmap_read (priv -> regmap32 , QPOSINIT , & qposinit );
246
-
247
- return sprintf (buf , "%u\n" , qposinit );
248
- }
249
-
250
- static ssize_t ti_eqep_position_floor_write (struct counter_device * counter ,
251
- struct counter_count * count ,
252
- void * ext_priv , const char * buf ,
253
- size_t len )
254
- {
255
- struct ti_eqep_cnt * priv = counter -> priv ;
256
- int err ;
257
- u32 res ;
258
-
259
- err = kstrtouint (buf , 0 , & res );
260
- if (err < 0 )
261
- return err ;
262
-
263
- regmap_write (priv -> regmap32 , QPOSINIT , res );
264
-
265
- return len ;
266
- }
267
-
268
238
static ssize_t ti_eqep_position_enable_read (struct counter_device * counter ,
269
239
struct counter_count * count ,
270
240
void * ext_priv , char * buf )
@@ -301,11 +271,6 @@ static struct counter_count_ext ti_eqep_position_ext[] = {
301
271
.read = ti_eqep_position_ceiling_read ,
302
272
.write = ti_eqep_position_ceiling_write ,
303
273
},
304
- {
305
- .name = "floor" ,
306
- .read = ti_eqep_position_floor_read ,
307
- .write = ti_eqep_position_floor_write ,
308
- },
309
274
{
310
275
.name = "enable" ,
311
276
.read = ti_eqep_position_enable_read ,
0 commit comments