15 Mar, 2018

2 commits

  • There's already "dev" variable for that. Use it.

    Cc: Srinivas Kandagatla
    Cc: Heiko Stuebner
    Cc: Masahiro Yamada
    Cc: Carlo Caione
    Cc: Kevin Hilman
    Cc: Matthias Brugger
    Cc: cphealy@gmail.com
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-mediatek@lists.infradead.org
    Cc: linux-rockchip@lists.infradead.org
    Cc: linux-amlogic@lists.infradead.org
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: Andrey Smirnov
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Greg Kroah-Hartman

    Andrey Smirnov
     
  • Drop all of the code related to .remove hook and make use of
    devm_nvmem_register() instead.

    Cc: Srinivas Kandagatla
    Cc: Heiko Stuebner
    Cc: Masahiro Yamada
    Cc: Carlo Caione
    Cc: Kevin Hilman
    Cc: Matthias Brugger
    Cc: cphealy@gmail.com
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-mediatek@lists.infradead.org
    Cc: linux-rockchip@lists.infradead.org
    Cc: linux-amlogic@lists.infradead.org
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: Andrey Smirnov
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Greg Kroah-Hartman

    Andrey Smirnov
     

08 Nov, 2017

2 commits

  • All nvmem drivers are supposed to set the owner field of struct
    nvmem_config, but this matches nvmem->dev->driver->owner.

    As far as I see in drivers/nvmem/ directory, all the drivers are
    the case. So, make nvmem_register() set the nvmem's owner to the
    associated driver's owner unless nvmem_config sets otherwise.

    Remove .owner settings in the drivers that are now redundant.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     
  • nvmem_register() copies all the members of nvmem_config to
    nvmem_device. So, nvmem_config is one-time use data during
    probing. There is no point to keep it until the driver detach.
    Using stack should be no problem because nvmem_config is pretty
    small.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     

08 Apr, 2017

1 commit

  • This adds a readonly nvmem driver for the i.MX IC Identification Module
    (IIM). The IIM is found on the older i.MX SoCs like the i.MX25, i.MX27,
    i.MX31, i.MX35, i.MX51 and the i.MX53.

    The IIM can control up to 8 fuse banks with 256 bit each. Not all of the
    banks are equipped on the different SoCs. The actual number of fuses
    differ from 512 on the i.MX27 and 1152 on the i.MX53.

    The fuses are one time writable, but writing is currently not supported
    in the driver.

    Signed-off-by: Michael Grzeschik
    Signed-off-by: Sascha Hauer
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Greg Kroah-Hartman

    Michael Grzeschik