]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ads7846 - switch to devm initialization
authorDaniel Mack <daniel@zonque.org>
Fri, 10 Sep 2021 01:03:01 +0000 (18:03 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Sep 2021 04:30:02 +0000 (21:30 -0700)
commit0890454d5891daae9218bd694004973ac94788cd
treed9e4e0e841ca8594786fc40049c6318e8eb0f953
parentb5711f52af9128e01df5ae1f35bf6f9b11b8185e
Input: ads7846 - switch to devm initialization

This simplies the code a lot and fixes some potential resource leaks in
the error return paths.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20210907200726.2034962-4-daniel@zonque.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c