gpio: store reflect the label to userspace
[deliverable/linux.git] / include / uapi / linux / gpio.h
CommitLineData
3c702e99
LW
1/*
2 * <linux/gpio.h> - userspace ABI for the GPIO character devices
3 *
4 * Copyright (C) 2015 Linus Walleij
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.
9 */
10#ifndef _UAPI_GPIO_H_
11#define _UAPI_GPIO_H_
12
13#include <linux/ioctl.h>
14#include <linux/types.h>
15
16/**
17 * struct gpiochip_info - Information about a certain GPIO chip
18 * @name: the name of this GPIO chip
df4878e9 19 * @label: a functional name for this GPIO chip
3c702e99
LW
20 * @lines: number of GPIO lines on this chip
21 */
22struct gpiochip_info {
23 char name[32];
df4878e9 24 char label[32];
3c702e99
LW
25 __u32 lines;
26};
27
28#define GPIO_GET_CHIPINFO_IOCTL _IOR('o', 0x01, struct gpiochip_info)
29
30#endif /* _UAPI_GPIO_H_ */
This page took 0.032104 seconds and 5 git commands to generate.