core: kill gpiod_line_close_chip()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 2 Dec 2020 09:56:46 +0000 (10:56 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Dec 2020 14:56:51 +0000 (15:56 +0100)
This helper was supposed to be used together with global line lookup
which will soon be removed so drop this one too.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
include/gpiod.h
lib/helpers.c

index c6e0b65f8f598c7f37209efa1072a674bfe327cd..2e8323acef9ac9e0f429eccc4904b70d7e8c0803 100644 (file)
@@ -1092,14 +1092,6 @@ gpiod_line_get(const char *device, unsigned int offset) GPIOD_API;
  */
 struct gpiod_line *gpiod_line_find(const char *name) GPIOD_API;
 
-/**
- * @brief Close a GPIO chip owning this line and release all resources.
- * @param line GPIO line object
- *
- * After this function returns, the line must no longer be used.
- */
-void gpiod_line_close_chip(struct gpiod_line *line) GPIOD_API;
-
 /**
  * @}
  *
index 3ec6c96d0fa36eeb41dec13771e5efb26a6ac0ca..b3050ca6f771366dfd8a4d39c24ba50386cf3719 100644 (file)
@@ -424,10 +424,3 @@ out:
 
        return NULL;
 }
-
-void gpiod_line_close_chip(struct gpiod_line *line)
-{
-       struct gpiod_chip *chip = gpiod_line_get_chip(line);
-
-       gpiod_chip_close(chip);
-}