01 Jul, 2013

2 commits

  • The implementation in of_regulator_match() already ensures match->init_data is
    not NULL for all matched cases if the return value of of_regulator_match() > 0.

    Thus remove NULL test for rmatch[i].init_data.

    This patch also fixes the condition for loop iteration.
    The for loop should iterate "matched" times rather than ARRAY_SIZE(regulators)
    because we only allocate "matched" number of entries for rdata.
    Though in most cases, "matched" == ARRAY_SIZE(regulators).

    Signed-off-by: Axel Lin
    Acked-by: Jonghwa Lee
    Signed-off-by: Mark Brown

    Axel Lin
     
  • Fix trivial typo in the equation to check upper bound of current setting.

    Signed-off-by: Axel Lin
    Acked-by: Jonghwa Lee
    Signed-off-by: Mark Brown

    Axel Lin
     

25 Jun, 2013

1 commit

  • This patch adds new regulator driver to support max77693 chip's regulators.
    max77693 has two linear voltage regulators and one current regulator which
    can be controlled through I2C bus. This driver also supports device tree.

    Signed-off-by: Jonghwa Lee
    Signed-off-by: Myungjoo Ham
    Signed-off-by: Mark Brown

    Jonghwa Lee