19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

17 Mar, 2018

1 commit

  • In preparation to enabling -Wvla, remove VLA and replace it
    with a fixed-length array instead.

    >From a security viewpoint, the use of Variable Length Arrays can be
    a vector for stack overflow attacks. Also, in general, as the code
    evolves it is easy to lose track of how big a VLA can get. Thus, we
    can end up having segfaults that are hard to debug.

    Also, fixed as part of the directive to remove all VLAs from
    the kernel: https://lkml.org/lkml/2018/3/7/621

    Signed-off-by: Gustavo A. R. Silva
    Signed-off-by: Alexandre Belloni

    Gustavo A. R. Silva
     

02 Mar, 2018

1 commit


09 Mar, 2017

1 commit

  • The driver doesn't have a struct of_device_id table but supported devices
    are registered via Device Trees. This is working on the assumption that a
    I2C device registered via OF will always match a legacy I2C device ID and
    that the MODALIAS reported will always be of the form i2c:.

    But this could change in the future so the correct approach is to have an
    OF device ID table if the devices are registered via OF.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Alexandre Belloni

    Javier Martinez Canillas
     

01 Feb, 2017

1 commit

  • The bq32000 includes a trickle charge circuit to maintain the charge of the
    backup supply when a super capacitor is used.

    You can enable the charging circuit by setting 'trickle-resistor-ohms',
    additionally you can set TCFE to 1 to bypass the internal diode and boost
    the charge voltage of the backup supply. You might want to enable/disable
    the TCFE switch from userspace (e.g when device is only connected to a
    battery)

    This patch introduces a new sysfs entry to enable and disable this FET
    form userspace.

    Signed-off-by: Enric Balletbo i Serra
    Signed-off-by: Alexandre Belloni

    Enric Balletbo i Serra
     

01 Sep, 2016

2 commits


05 Sep, 2015

2 commits


30 Oct, 2014

1 commit

  • Fix register value in bq32000 trickle charging.

    Mike reported that I'm using wrong value in one trickle-charging case,
    and after checking docs, I must admit he's right.

    Signed-off-by: Pavel Machek
    Reported-by: Mike Bremford
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     

14 Oct, 2014

1 commit

  • BQ32000 devices have "trickle chargers". Introduce a code to enable the
    charger, based on device tree.

    Without charger, RTC does not keep time after power off.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Pavel Machek
    Cc: Jason Cooper
    Cc: Matti Vaittinen
    Cc: Rob Herring
    Cc: Ian Campbell
    Cc: Alessandro Zummo
    Cc: Guenter Roeck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     

04 Jul, 2013

1 commit


30 Apr, 2013

1 commit


04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Alessandro Zummo
    Cc: Srinidhi Kasagar
    Cc: Linus Walleij
    Cc: Mike Frysinger
    Cc: Wan ZongShun
    Cc: Guan Xuetao
    Cc: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

24 Mar, 2012

1 commit

  • Factor out some boilerplate code for i2c driver registration into
    module_i2c_driver.

    Signed-off-by: Axel Lin
    Cc: Piotr Ziecik
    Cc: Alessandro Zummo
    Cc: Scott Wood
    Cc: Srikanth Srinivasan
    Cc: Mike Rapoport
    Cc: Sergey Lapin
    Cc: Roman Fietze
    Cc: Herbert Valerio Riedel
    Cc: Alexander Bigga
    Cc: Dale Farnsworth
    Cc: Gregory Hermant
    Cc: Wolfgang Grandegger
    Cc: Martyn Welch
    Cc: Byron Bradley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     

16 Dec, 2009

1 commit

  • This patch adds basic support for Texas Instruments BQ32000 I2C RTC. Only
    time reading/writing is implemented. Advanced features, such as trickle
    charger and crystal calibration are not supported.

    Signed-off-by: Piotr Ziecik
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Piotr Ziecik