History log of /openbmc/phosphor-gpio-monitor/file.hpp (Results 1 – 4 of 4)
Revision Date Author Comments
# 9b4c6cf7 02-Aug-2023 George Liu <liuxiwei@inspur.com>

Fix some warnings by cppcheck

Warnign message:
evdev.hpp:23:9: warning: Assignment of function parameter has no
effect outside the function. Did you forget dereferencing it?
[uselessAssignmentPtrArg

Fix some warnings by cppcheck

Warnign message:
evdev.hpp:23:9: warning: Assignment of function parameter has no
effect outside the function. Did you forget dereferencing it?
[uselessAssignmentPtrArg]
event = sd_event_unref(event);
^
evdev.hpp:33:9: warning: Assignment of function parameter has no
effect outside the function. Did you forget dereferencing it?
[uselessAssignmentPtrArg]
eventSource = sd_event_source_unref(eventSource);
^
file.hpp:28:5: style: Class 'FileDescriptor' has a constructor with 1
argument that is not explicit. [noExplicitConstructor]
FileDescriptor(int fd) : fd(fd)
^

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I66cc8a3faebb39dabcaac71b6930c22acc351447

show more ...


# dace680f 01-Nov-2018 Patrick Venture <venture@google.com>

Add clang-format to repo

Add clang-format to repo.

Change-Id: I3f8704d80dd0bdde0706ab189c68cffe6d347995
Signed-off-by: Patrick Venture <venture@google.com>


# 36df1979 25-May-2017 Matt Spinler <spinler@us.ibm.com>

Add GPIO class

This class is used for accessing a GPIO via the
/dev/gpiochipX interface.

It requests a GPIO line handle from the GPIO device to
do the actual operation on.

The GPIO number to use,

Add GPIO class

This class is used for accessing a GPIO via the
/dev/gpiochipX interface.

It requests a GPIO line handle from the GPIO device to
do the actual operation on.

The GPIO number to use, for AST chips at least, is the
actual GPIO number, such as GPIOA0 = 0 and GPIOA7 = 7.

The class currently only supports writes.

Change-Id: I1c2ae38c23c5db502d5f14bcf9aa2e35094f1e9b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# 4902a10c 04-Apr-2017 Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

Populate the file descriptor for the device

On a GPIO chip, there could be many gpio lines and for each line,
there would be a corresponding input device event file.
To know the assertion state of a

Populate the file descriptor for the device

On a GPIO chip, there could be many gpio lines and for each line,
there would be a corresponding input device event file.
To know the assertion state of a GPIO line, a descriptor is needed.
This descriptor will later be plugged into sd_event so that the
GPIO state changes can be caught and handled.

Change-Id: Idc8c2b429688fea2a5124b96677085b1be48128b
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>

show more ...