Make cppcheck happy
This commit is contained in:
@@ -32,6 +32,7 @@ static int ftdi_open(const struct gpio *gpio)
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
int gpio_open(const struct gpio *gpio)
|
||||
{
|
||||
int res;
|
||||
@@ -72,6 +73,7 @@ int gpio_open(const struct gpio *gpio)
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
int gpio_close(const struct gpio *gpio)
|
||||
{
|
||||
if(NULL == gpio) {
|
||||
@@ -90,6 +92,7 @@ int gpio_close(const struct gpio *gpio)
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
int gpio_read(const struct gpio *gpio, unsigned int *value)
|
||||
{
|
||||
if(NULL == gpio || NULL == value) {
|
||||
@@ -134,6 +137,7 @@ int gpio_write(const struct gpio *gpio, unsigned int value)
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
int gpio_toggle(const struct gpio *gpio)
|
||||
{
|
||||
int res;
|
||||
|
Reference in New Issue
Block a user