Skip to content

Commit

Permalink
gpio: Clarify that <linux/gpio.h> is legacy
Browse files Browse the repository at this point in the history
It should be clear to developers that they should not include
this file in new code.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Linus Walleij committed Nov 30, 2017
1 parent 3554187 commit 56a46b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/linux/gpio.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* <linux/gpio.h>
*
* This is the LEGACY GPIO bulk include file, including legacy APIs. It is
* used for GPIO drivers still referencing the global GPIO numberspace,
* and should not be included in new code.
*
* If you're implementing a GPIO driver, only include <linux/gpio/driver.h>
* If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h>
*/
#ifndef __LINUX_GPIO_H
#define __LINUX_GPIO_H

Expand Down

0 comments on commit 56a46b6

Please sign in to comment.