mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
gpio/74x164: remove unnecessary defines and prototype
Remove the #define GEN_74X164_GPIO_COUNT since it's only used in one place and it's meaning is obvious. Also remove the #define GEN_74X164_DRIVER_NAME and use spi->modalias to set the gpio chip's label and the string "74x164" for the driver name. Reorder the code slightly to remove the need to prototype gen_74x164_set_value. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
1fa7b6a29c
commit
a3cc68c378
2 changed files with 11 additions and 18 deletions
|
@ -1,8 +1,6 @@
|
|||
#ifndef LINUX_SPI_74X164_H
|
||||
#define LINUX_SPI_74X164_H
|
||||
|
||||
#define GEN_74X164_DRIVER_NAME "74x164"
|
||||
|
||||
struct gen_74x164_chip_platform_data {
|
||||
/* number assigned to the first GPIO */
|
||||
unsigned base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue