Define gpio polarity values in one place.
No need to define these everywhere, one place will serve all uses. BUG=none TEST=compiled various targets without any problem Change-Id: Iabf31baad6049c758e078727ba3ebe830c3c7684 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/210921 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
c8832e73de
commit
0d7cb58eba
27 changed files with 4 additions and 70 deletions
|
|
@ -29,8 +29,6 @@
|
|||
#include <boot/coreboot_tables.h>
|
||||
|
||||
#define GPIO_COUNT 6
|
||||
#define ACTIVE_LOW 0
|
||||
#define ACTIVE_HIGH 1
|
||||
|
||||
void fill_lb_gpios(struct lb_gpios *gpios)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
#include <boot/coreboot_tables.h>
|
||||
|
||||
#define GPIO_COUNT 6
|
||||
#define ACTIVE_LOW 0
|
||||
#define ACTIVE_HIGH 1
|
||||
|
||||
static void fill_lb_gpio(struct lb_gpio *gpio, int polarity,
|
||||
const char *name, int force)
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@
|
|||
#include <boot/coreboot_tables.h>
|
||||
|
||||
#define GPIO_COUNT 6
|
||||
#define ACTIVE_LOW 0
|
||||
#define ACTIVE_HIGH 1
|
||||
|
||||
void fill_lb_gpios(struct lb_gpios *gpios)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
#include <boot/coreboot_tables.h>
|
||||
|
||||
#define GPIO_COUNT 6
|
||||
#define ACTIVE_LOW 0
|
||||
#define ACTIVE_HIGH 1
|
||||
|
||||
static void fill_lb_gpio(struct lb_gpio *gpio, int num,
|
||||
int polarity, const char *name, int force)
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
#include <boot/coreboot_tables.h>
|
||||
|
||||
#define GPIO_COUNT 6
|
||||
#define ACTIVE_LOW 0
|
||||
#define ACTIVE_HIGH 1
|
||||
|
||||
static void fill_lb_gpio(struct lb_gpio *gpio, int num,
|
||||
int polarity, const char *name, int force)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue