• Ben Dooks's avatar
    [ARM] S3C24XX: GPIO: Remove pin specific input and output defines · 9f05f6a9
    Ben Dooks authored
    The use of S3C2410_GP[A-Z]x_INP and S3C2410_GP[A-Z]x_OUTP are
    very rare and are taking up large amounts of space in the
    regs-gpio.h header.
    
    The GPIO layer has had generic input and out defines called
    S3C2410_GPIO_INPUT and S3C2410_GPIO_OUTPUT for a while which work
    for all S3C24XX GPIOs.
    
    Do the following replacements:
    
       S3C2410_GP[A-Z][0-9]*_\OUTP => S3C2410_GPIO_OUTPUT
       S3C2410_GP[A-Z][0-9]*_\INP  => /S3C2410_GPIO_INPUT
       S3C2410_GPA[0-9]*_OUT       => S3C2410_GPIO_OUTPUT
    
    to remove any usages of these and prepare the header for
    the removal of these.
    
    The following command was used to acheive this:
    
    find . -type f -writable ! -name regs-gpio.h ! -name "*~" | xargs sed -i~ -e 's/S3C2410_GP[A-Z][0-9]*_\OUTP/S3C2410_GPIO_OUTPUT/g' -e 's/S3C2410_GP[A-Z][0-9]*_\INP/S3C2410_GPIO_INPUT/g' -e 's/S3C2410_GPA[0-9]*_OUT/S3C2410_GPIO_OUTPUT/g'
    Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
    9f05f6a9
mach-vr1000.c 9.32 KB