File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,14 @@ static int tcan4x5x_init(struct m_can_classdev *cdev)
279
279
return ret ;
280
280
}
281
281
282
+ static int tcan4x5x_deinit (struct m_can_classdev * cdev )
283
+ {
284
+ struct tcan4x5x_priv * tcan4x5x = cdev_to_priv (cdev );
285
+
286
+ return regmap_update_bits (tcan4x5x -> regmap , TCAN4X5X_CONFIG ,
287
+ TCAN4X5X_MODE_SEL_MASK , TCAN4X5X_MODE_STANDBY );
288
+ };
289
+
282
290
static int tcan4x5x_disable_wake (struct m_can_classdev * cdev )
283
291
{
284
292
struct tcan4x5x_priv * tcan4x5x = cdev_to_priv (cdev );
@@ -376,6 +384,7 @@ static int tcan4x5x_get_gpios(struct m_can_classdev *cdev,
376
384
377
385
static const struct m_can_ops tcan4x5x_ops = {
378
386
.init = tcan4x5x_init ,
387
+ .deinit = tcan4x5x_deinit ,
379
388
.read_reg = tcan4x5x_read_reg ,
380
389
.write_reg = tcan4x5x_write_reg ,
381
390
.write_fifo = tcan4x5x_write_fifo ,
You can’t perform that action at this time.
0 commit comments