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
     

21 Mar, 2019

1 commit


01 Feb, 2017

1 commit

  • Declare regulator_ops structure as const as it is only stored in the ops
    field of a regulator_desc structure. This field is of type const, so
    regulator_ops structures having this property can be made const too.

    File size before: drivers/regulator/max8925-regulator.o
    text data bss dec hex filename
    1356 7184 0 8540 215c regulator/max8925-regulator.o

    File size after: drivers/regulator/max8925-regulator.o
    text data bss dec hex filename
    1868 6664 0 8532 2154 regulator/max8925-regulator.o

    Signed-off-by: Bhumika Goyal
    Signed-off-by: Mark Brown

    Bhumika Goyal
     

20 Oct, 2014

1 commit


10 Sep, 2014

1 commit

  • These of_node_get() were added to balance refcount decrements inside of
    of_find_node_by_name().
    See: commit c92f5dd2c42f ("regulator: Add missing of_node_put()")

    However of_find_node_by_name() was then replaced by of_get_child_by_name(),
    which doesn't call of_node_put() against its input parameter.

    So, need to remove these unnecessary of_node_get() calls.

    Signed-off-by: Guodong Xu
    Reviewed-by: Axel Lin
    Signed-off-by: Mark Brown

    Guodong Xu
     

18 Mar, 2014

1 commit


10 Mar, 2014

1 commit


19 Feb, 2014

1 commit


15 Feb, 2014

1 commit


01 Oct, 2013

1 commit


30 Jul, 2013

1 commit


12 May, 2013

1 commit


04 Mar, 2013

1 commit


30 Jan, 2013

1 commit

  • of_find_node_by_name() returns a node pointer with refcount incremented, use
    of_node_put() on it when done.

    of_find_node_by_name() will call of_node_put() against from parameter,
    thus we also need to call of_node_get(from) before calling
    of_find_node_by_name().

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

20 Nov, 2012

3 commits


07 Nov, 2012

1 commit


19 Sep, 2012

1 commit

  • Remove array in parent's platform data. Use struct regulator_init_data
    as regulator device's platform data directly. So a lot of pdata are
    added into parent's platform data. And voltage out register offset
    is used as IORESOURCE_REG to distinguish different regualtor devices.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     

18 May, 2012

1 commit


14 May, 2012

3 commits


09 Apr, 2012

1 commit

  • Rather than adding new arguments to regulator_register() every time we
    want to add a new bit of dynamic information at runtime change the function
    to take these via a struct. By doing this we avoid needing to do further
    changes like the recent addition of device tree support which required each
    regulator driver to be updated to take an additional parameter.

    The regulator_desc which should (mostly) be static data is still passed
    separately as most drivers are able to configure this statically at build
    time.

    Signed-off-by: Mark Brown

    Mark Brown
     

03 Apr, 2012

2 commits


14 Mar, 2012

1 commit


07 Jan, 2012

1 commit

  • Max8925 ldo status should be determined by two factors:
    1. power up/down sequence selection(LDOCTL[4:2]).
    2. i2c enable bit(LDOCTL[0]).

    Max8925 ldo support two types of power up/down sequence:
    1. flexible sequence(LDOCTL[4:2] = 0~6).
    2. i2c sequence(LDOCTL[4:2] = 7).

    With flexible sequence selected, the ldo is enabled during power up by default.
    With i2c sequence selected, the ldo is controlled by the i2c enable bit(LDOCTL[0]).

    Signed-off-by: Kevin Liu
    Signed-off-by: Haojian Zhuang
    Signed-off-by: Mark Brown

    Kevin Liu
     

24 Nov, 2011

1 commit

  • With device tree support for regulators, its needed that the
    regulator_dev->dev device has the right of_node attached.
    To be able to do this add an additional parameter to the
    regulator_register() api, wherein the dt-adapted driver can
    then pass this additional info onto the regulator core.

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Mark Brown

    Rajendra Nayak
     

01 Nov, 2011

1 commit


27 May, 2011

1 commit


12 Jan, 2011

1 commit

  • Change the interface used by set_voltage() to report the selected value
    to the regulator core in terms of a selector used by list_voltage().
    This allows the regulator core to know the voltage that was chosen
    without having to do an explict get_voltage(), which would be much more
    expensive as it will generally access hardware.

    Signed-off-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mark Brown
     

28 Apr, 2010

1 commit


23 Mar, 2010

1 commit


08 Mar, 2010

1 commit