21 May, 2019

1 commit

  • Add SPDX license identifiers to all files which:

    - Have no license information of any form

    - Have MODULE_LICENCE("GPL*") inside which was used in the initial
    scan/conversion to ignore the file

    These files fall under the project license, GPL v2 only. The resulting SPDX
    license identifier is:

    GPL-2.0-only

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

25 Dec, 2016

1 commit


23 Feb, 2013

1 commit


09 Dec, 2006

1 commit


04 Oct, 2006

1 commit


15 Jul, 2006

1 commit

  • - pure cosmetics: lose needless newlines.

    - rename EXPORTed gpio vtables from {scx200,pc8736x}_access to _gpio_ops new
    name is much closer to the vtable-name struct nsc_gpio_ops, should be
    clearer. Also rename the _fops vtable var to _fileops to better
    disambiguate it from the gpio vtable.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     

28 Jun, 2006

6 commits

  • Add current pin settings to gpio_dump() output. This adds the last 'word' to
    the syslog lines, which displays the input and output values that the pin is
    set to.

    pc8736x_gpio.0: io00: 0x0044 TS OD PUE EDGE LO DEBOUNCE io:1/1

    The 2 values may differ for a number of reasons:
    1- the pin output circuitry is diaabled, (as the above 'TS' indicates)
    2- it needs a pullup resistor to drive the attached circuit,
    3- the external circuit needs a pullup so the open-drain has something
    to pull-down
    4- the pin is wired to Vcc or Ground

    It might be appropriate to add a WARN for 2,3,4, since they could
    damage the chip and/or circuit, esp if misconfig goes unnoticed.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Use of dev_dbg() and friends is considered good practice. dev_dbg() needs a
    struct device *devp, but nsc_gpio is only a helper module, so it doesnt
    have/need its own. To provide devp to the user-modules (scx200 & pc8736x
    _gpio), we add it to the vtable, and set it during init.

    Also squeeze nsc_gpio_dump()'s format a little.

    [ 199.259879] pc8736x_gpio.0: io09: 0x0044 TS OD PUE EDGE LO DEBOUNCE

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Add the brand new pc8736x_gpio driver. This is mostly based upon
    scx200_gpio.c, but the platform_dev is treated separately, since its fairly
    big too.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Since the meaning of config-bits is the same for scx200 and pc8736x _gpios, we
    can share a function to deliver this to user. Since it is called via the
    vtable, its also completely replaceable. For now, we keep using printk...

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Now that the read(), write() file-ops are dispatching gpio-ops via the vtable,
    they are generic, and can be moved 'verbatim' to the nsc_gpio common-support
    module. After the move, various symbols are renamed to update 'scx200_' to
    'nsc_', and headers are adjusted accordingly.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Add the nsc_gpio common-support module as an empty shell. Next patch starts
    the migration of the common gpio support routines.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie