Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
42 lines
841 B
ReStructuredText
42 lines
841 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
.. _GPIO_GET_CHIPINFO_IOCTL:
|
|
|
|
***********************
|
|
GPIO_GET_CHIPINFO_IOCTL
|
|
***********************
|
|
|
|
Name
|
|
====
|
|
|
|
GPIO_GET_CHIPINFO_IOCTL - Get the publicly available information for a chip.
|
|
|
|
Synopsis
|
|
========
|
|
|
|
.. c:macro:: GPIO_GET_CHIPINFO_IOCTL
|
|
|
|
``int ioctl(int chip_fd, GPIO_GET_CHIPINFO_IOCTL, struct gpiochip_info *info)``
|
|
|
|
Arguments
|
|
=========
|
|
|
|
``chip_fd``
|
|
The file descriptor of the GPIO character device returned by `open()`.
|
|
|
|
``info``
|
|
The :c:type:`chip_info<gpiochip_info>` to be populated.
|
|
|
|
Description
|
|
===========
|
|
|
|
Gets the publicly available information for a particular GPIO chip.
|
|
|
|
Return Value
|
|
============
|
|
|
|
On success 0 and ``info`` is populated with the chip info.
|
|
|
|
On error -1 and the ``errno`` variable is set appropriately.
|
|
Common error codes are described in error-codes.rst.
|