08 Nov, 2014

1 commit


13 Mar, 2014

1 commit


25 Jan, 2014

1 commit


11 Feb, 2013

6 commits


23 Dec, 2012

1 commit

  • CONFIG_HOTPLUG is going away as an option. As result the __dev*
    markings will be going away.

    Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
    and __devexit.

    Signed-off-by: Bill Pemberton
    Acked-by: Peter Korsgaard (for ocores and mux-gpio)
    Acked-by: Havard Skinnemoen (for i2c-gpio)
    Acked-by: Guan Xuetao (for puf3)
    Acked-by: Barry Song (for sirf)
    Reviewed-by: Jean Delvare
    [wsa: Fixed "foo* bar" flaws while we are here]
    Signed-off-by: Wolfram Sang

    Bill Pemberton
     

24 Jul, 2012

1 commit

  • Convert the drivers in drivers/i2c/busses/* to usemodule_pci_driver()
    macro which makes the code smaller and a bit simpler.

    Signed-off-by: Axel Lin
    Acked-by: Wolfram Sang
    Signed-off-by: Jean Delvare
    Cc: Rudolf Marek
    Cc: Olof Johansson
    Cc: "Mark M. Hoffman"
    Cc: Tomoya MORINAGA

    Axel Lin
     

15 Jan, 2012

1 commit

  • Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1

    * tag 'for-linus' of git://github.com/rustyrussell/linux:
    module_param: check that bool parameters really are bool.
    intelfbdrv.c: bailearly is an int module_param
    paride/pcd: fix bool verbose module parameter.
    module_param: make bool parameters really bool (drivers & misc)
    module_param: make bool parameters really bool (arch)
    module_param: make bool parameters really bool (core code)
    kernel/async: remove redundant declaration.
    printk: fix unnecessary module_param_name.
    lirc_parallel: fix module parameter description.
    module_param: avoid bool abuse, add bint for special cases.
    module_param: check type correctness for module_param_array
    modpost: use linker section to generate table.
    modpost: use a table rather than a giant if/else statement.
    modules: sysfs - export: taint, coresize, initsize
    kernel/params: replace DEBUGP with pr_debug
    module: replace DEBUGP with pr_debug
    module: struct module_ref should contains long fields
    module: Fix performance regression on modules with large symbol tables
    module: Add comments describing how the "strmap" logic works

    Fix up conflicts in scripts/mod/file2alias.c due to the new linker-
    generated table approach to adding __mod_*_device_table entries. The
    ARM sa11x0 mcp bus needed to be converted to that too.

    Linus Torvalds
     

13 Jan, 2012

3 commits

  • module_param(bool) used to counter-intuitively take an int. In
    fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
    trick.

    It's time to remove the int/unsigned int option. For this version
    it'll simply give a warning, but it'll break next kernel version.

    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
    tables.

    Use DEFINE_PCI_DEVICE_TABLE ensures we make the pci_device_id table const
    and marked as __devinitconst.

    This also fixes some warnings from checkpatch:
    e.g.
    WARNING: Use DEFINE_PCI_DEVICE_TABLE for struct pci_device_id
    #1096: FILE: i2c/busses/i2c-intel-mid.c:1096:
    +static struct pci_device_id intel_mid_i2c_ids[] = {

    Signed-off-by: Axel Lin
    Cc: Rudolf Marek
    Cc: Ben Dooks
    Acked-by: Olof Johansson
    Cc: "Mark M. Hoffman"
    Acked-by: Dirk Brandewie
    Cc: Tomoya MORINAGA
    Acked-by: Wolfram Sang
    Cc: Feng Tang
    Cc: Sebastian Andrzej Siewior
    Signed-off-by: Jean Delvare

    Axel Lin
     
  • When adding checks for ACPI resource conflicts to many bus drivers,
    not enough attention was paid to the error paths, and for several
    drivers this causes 0 to be returned on error in some cases. Fix this
    by properly returning a non-zero value on every error.

    Signed-off-by: Jean Delvare
    Cc: stable@kernel.org

    Jean Delvare
     

22 May, 2010

1 commit


02 Mar, 2010

1 commit

  • The id_table field of the struct pci_driver is constant in
    so it is worth to make initialization data also constant.

    The semantic match that finds this kind of pattern is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r@
    disable decl_init,const_decl_init;
    identifier I1, I2, x;
    @@
    struct I1 {
    ...
    const struct I2 *x;
    ...
    };
    @s@
    identifier r.I1, y;
    identifier r.x, E;
    @@
    struct I1 y = {
    .x = E,
    };
    @c@
    identifier r.I2;
    identifier s.E;
    @@
    const struct I2 E[] = ... ;
    @depends on !c@
    identifier r.I2;
    identifier s.E;
    @@
    + const
    struct I2 E[] = ...;
    //

    Signed-off-by: Márton Németh
    Cc: Julia Lawall
    Signed-off-by: Jean Delvare

    Márton Németh
     

07 Dec, 2009

1 commit


05 May, 2009

1 commit

  • with while (timeout++ < MAX_TIMEOUT); timeout reaches MAX_TIMEOUT + 1
    after the loop, so the tests below are off by one.

    Signed-off-by: Roel Kluin
    Signed-off-by: Jean Delvare

    Roel Kluin
     

27 Jan, 2009

1 commit


07 Jan, 2009

1 commit


15 Jul, 2008

5 commits

  • Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Check for ACPI resource conflicts in i2c bus drivers. I've included
    all recent SMBus master drivers for PC hardware.

    I've voluntarily left out:
    * Drivers that don't run on PCs: they can't conflict with ACPI.
    * Bit-banged bus device drivers: it's very unlikely that ACPI would
    deal with such buses.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Let general purpose I2C/SMBus bus drivers add SPD to their class. Once
    this is done, we will be able to tell the eeprom driver to only probe
    for SPD EEPROMs and similar on these buses.

    Note that I took a conservative approach here, adding I2C_CLASS_SPD to
    many drivers that have no idea whether they can host SPD EEPROMs or not.
    This is to make sure that the eeprom driver doesn't stop probing buses
    where SPD EEPROMs or equivalent live.

    So, bus driver maintainers and users should feel free to remove the SPD
    class from drivers those buses never have SPD EEPROMs or they don't
    want the eeprom driver to bind to them. Likewise, feel free to add the
    SPD class to any bus driver I might have missed.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Many PC SMBus host controller drivers don't properly handle the case
    where they are requested to achieve a transaction they do not support.
    Update them so that the consistently print a warning message and
    return a single error value in this case.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Tighten error paths used by various i2c adapters (mostly x86) so
    they return real fault/errno codes instead of a "-1" (which is
    most often interpreted as "-EPERM"). Build tested, with eyeball
    review.

    One minor initial goal is to have adapters consistently return
    the code "-ENXIO" when addressing a device doesn't get an ACK
    response, at least in the probe paths where they are already
    good at stifling related logspam.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     

30 Apr, 2008

1 commit


18 Feb, 2007

1 commit


14 Feb, 2007

1 commit

  • IDs have been defined but not used by most of the I2C adapters.
    By having a unique ID, clients can check for correct connection
    during probe.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jean Delvare

    Stephen Hemminger
     

27 Sep, 2006

1 commit


11 Nov, 2005

1 commit


29 Oct, 2005

3 commits

  • This patch updates .owner field for various struct pci_driver variables.

    Signed-off-by: Laurent Riffard
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Laurent Riffard
     
  • Clean up name string usage in 12 i2c bus drivers:
    * Use the i2c_adapter name for requesting the I/O region rather than
    redefining a new string.
    * Do not initialize the i2c_adapter name to "unset".
    This should save a few data bytes here and there.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    drivers/i2c/busses/i2c-ali1535.c | 6 +++---
    drivers/i2c/busses/i2c-ali1563.c | 6 ++++--
    drivers/i2c/busses/i2c-ali15x3.c | 5 +++--
    drivers/i2c/busses/i2c-amd756.c | 5 ++---
    drivers/i2c/busses/i2c-amd8111.c | 4 +++-
    drivers/i2c/busses/i2c-i801.c | 4 ++--
    drivers/i2c/busses/i2c-nforce2.c | 4 ++--
    drivers/i2c/busses/i2c-piix4.c | 4 ++--
    drivers/i2c/busses/i2c-sis5595.c | 5 +++--
    drivers/i2c/busses/i2c-sis630.c | 6 ++++--
    drivers/i2c/busses/i2c-sis96x.c | 5 +++--
    drivers/i2c/busses/i2c-via.c | 4 ++--
    12 files changed, 33 insertions(+), 25 deletions(-)

    Jean Delvare
     
  • Kill explicit static initializations to 0 in 10 i2c drivers.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    drivers/i2c/algos/i2c-algo-pca.c | 2 +-
    drivers/i2c/algos/i2c-algo-sibyte.c | 2 +-
    drivers/i2c/busses/i2c-ali15x3.c | 4 ++--
    drivers/i2c/busses/i2c-amd756.c | 2 +-
    drivers/i2c/busses/i2c-iop3xx.c | 2 +-
    drivers/i2c/busses/i2c-piix4.c | 8 ++++----
    drivers/i2c/busses/i2c-sis5595.c | 4 ++--
    drivers/i2c/busses/i2c-sis630.c | 2 +-
    drivers/i2c/busses/i2c-sis96x.c | 2 +-
    drivers/i2c/busses/i2c-via.c | 2 +-
    10 files changed, 15 insertions(+), 15 deletions(-)

    Jean Delvare
     

06 Sep, 2005

2 commits


22 Jun, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds