aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/core.c
AgeCommit message (Expand)AuthorFilesLines
2024-05-03nvmem: core: switch to use device_add_groups()Greg Kroah-Hartman1-1/+1
2024-03-07nvmem: core: Print error on wrong bits DT propertyMarkus Schneider-Pargmann1-0/+5
2024-02-14nvmem: include bit index in cell sysfs file nameArnd Bergmann1-2/+3
2024-01-04nvmem: core: add nvmem_dev_size() helperRafał Miłecki1-0/+13
2024-01-04nvmem: drop nvmem_layout_get_match_data()Rafał Miłecki1-13/+0
2024-01-04nvmem: layouts: refactor .add_cells() callback argumentsRafał Miłecki1-1/+1
2023-12-15nvmem: core: Expose cells through sysfsMiquel Raynal1-1/+134
2023-12-15nvmem: core: Rework layouts to become regular devicesMiquel Raynal1-109/+61
2023-12-15nvmem: Move and rename ->fixup_cell_info()Miquel Raynal1-3/+3
2023-12-15nvmem: Simplify the ->add_cells() hookMiquel Raynal1-1/+1
2023-12-15nvmem: Create a header for internal sharingMiquel Raynal1-23/+1
2023-12-15nvmem: Move of_nvmem_layout_get_container() in another headerMiquel Raynal1-8/+0
2023-12-07nvmem: Do not expect fixed layouts to grab a layout driverMiquel Raynal1-0/+6
2023-10-27Revert "nvmem: add new config option"Rafał Miłecki1-1/+1
2023-10-21nvmem: add explicit config option to read old syntax fixed OF cellsRafał Miłecki1-3/+5
2023-08-23nvmem: core: Notify when a new layout is registeredMiquel Raynal1-0/+4
2023-08-23nvmem: core: Do not open-code existing functionsMiquel Raynal1-2/+2
2023-08-23nvmem: core: Create all cells before adding the nvmem deviceMiquel Raynal1-5/+5
2023-08-23nvmem: Explicitly include correct DT includesRob Herring1-1/+0
2023-06-15nvmem: core: add support for fixed cells *layout*Rafał Miłecki1-3/+29
2023-04-27Merge tag 'modules-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+0
2023-04-13nvmem: core: remove MODULE_LICENSE in non-modulesNick Alcock1-1/+0
2023-04-05nvmem: core: support specifying both: cell raw data & post read lengthsRafał Miłecki1-4/+7
2023-04-05nvmem: core: provide own priv pointer in post process callbackMichael Walle1-1/+3
2023-04-05nvmem: cell: drop global cell_post_processMichael Walle1-9/+0
2023-04-05nvmem: core: allow to modify a cell before adding itMichael Walle1-0/+4
2023-04-05nvmem: core: add per-cell post processingMichael Walle1-0/+17
2023-04-05nvmem: core: request layout modules loadingMiquel Raynal1-0/+8
2023-04-05nvmem: core: handle the absence of expected layoutsMiquel Raynal1-1/+9
2023-04-05nvmem: core: introduce NVMEM layoutsMichael Walle1-0/+120
2023-03-10nvmem: core: return -ENOENT if nvmem cell is not foundMichael Walle1-1/+1
2023-02-06nvmem: core: use nvmem_add_one_cell() in nvmem_add_cells_from_of()Michael Walle1-31/+14
2023-02-06nvmem: core: add nvmem_add_one_cell()Michael Walle1-24/+35
2023-02-06nvmem: core: drop the removal of the cells in nvmem_add_cells()Michael Walle1-10/+4
2023-02-06nvmem: core: add an index parameter to the cellMichael Walle1-11/+26
2023-02-06nvmem: core: remove spurious white spaceRussell King (Oracle)1-1/+1
2023-01-28nvmem: core: fix return valueRussell King (Oracle)1-0/+1
2023-01-28nvmem: core: fix cell removal on errorMichael Walle1-2/+1
2023-01-28nvmem: core: fix device node refcountingMichael Walle1-3/+8
2023-01-28nvmem: core: fix registration vs use raceRussell King (Oracle)1-10/+8
2023-01-28nvmem: core: fix cleanup after dev_set_name()Russell King (Oracle)1-12/+10
2023-01-28nvmem: core: remove nvmem_config wp_gpioRussell King (Oracle)1-3/+1
2023-01-28nvmem: core: initialise nvmem->id earlyRussell King (Oracle)1-1/+2
2022-09-24nvmem: core: add error handling for dev_set_nameGaosheng Cui1-3/+9
2022-09-24nvmem: core: Fix memleak in nvmem_register()Gaosheng Cui1-9/+6
2022-05-09nvmem: core: support passing DT node in cell infoRafał Miłecki1-0/+1
2022-02-28Merge 5.17-rc6 into char-misc-nextGreg Kroah-Hartman1-1/+1
2022-02-21nvmem: core: Check input parameter for NULL in nvmem_unregister()Andy Shevchenko1-1/+2
2022-02-21nvmem: core: Use devm_add_action_or_reset()Andy Shevchenko1-13/+9
2022-02-21nvmem: core: Remove unused devm_nvmem_unregister()Andy Shevchenko1-22/+0
2022-02-21nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios propertyChristophe Kerello1-1/+1
2021-12-03nvmem: core: set size for sysfs bin fileSrinivas Kandagatla1-0/+2
2021-10-18Merge 5.15-rc6 into char-misc-nextGreg Kroah-Hartman1-1/+2
2021-10-13nvmem: core: add nvmem cell post processing callbackSrinivas Kandagatla1-0/+9
2021-10-13nvmem: core: rework nvmem cell instance creationSrinivas Kandagatla1-60/+105
2021-10-13nvmem: Fix shift-out-of-bound (UBSAN) with byte size cellsStephen Boyd1-1/+2
2021-08-06nvmem: core: fix error handling while validating keepout regionsSrinivas Kandagatla1-2/+5
2021-07-05Merge tag 'char-misc-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-8/+15
2021-06-11nvmem: core: add a missing of_node_putChristophe JAILLET1-3/+6
2021-06-11nvmem: prepare basics for FRAM supportJiri Prchal1-0/+4
2021-06-11nvmem: core: constify nvmem_cell_read_variable_common() return valueDouglas Anderson1-5/+5
2021-05-10nvmem: core: allow specifying of_nodeMichael Walle1-1/+3
2021-04-02nvmem: core: Fix unintentional sign extension issueColin Ian King1-1/+1
2021-04-02nvmem: core: Add functions to make number reading easyDouglas Anderson1-0/+95
2021-02-04nvmem: core: skip child nodes not matching bindingAhmad Fatoum1-1/+3
2021-02-04nvmem: core: Fix a resource leak on error in nvmem_add_cells_from_of()Dan Carpenter1-0/+1
2020-11-27nvmem: core: Add support for keepout regionsEvan Green1-4/+149
2020-09-27nvmem: core: fix possibly memleak when use nvmem_cell_info_to_nvmem_cell()Vadym Kochan1-9/+24
2020-09-17nvmem: core: fix missing of_node_put() in of_nvmem_device_get()Vadym Kochan1-1/+4
2020-09-17nvmem: switch to simpler IDA interfaceBartosz Golaszewski1-3/+3
2020-09-17nvmem: core: Use kobj_to_dev() instead of container_of()Tian Tao1-3/+3
2020-07-29nvmem: core: add support to auto devidSrinivas Kandagatla1-2/+8
2020-07-29nvmem: core: Add nvmem_cell_read_u8()Andreas Färber1-0/+15
2020-07-29nvmem: core: Grammar fixes for help textAndreas Färber1-6/+6
2020-07-29nvmem: Enforce nvmem stride in the sysfs interfaceDouglas Anderson1-0/+6
2020-05-15nvmem: ensure sysfs writes handle write-protect pinMichael Auchter1-26/+26
2020-04-28nvmem: core: cleanup old eeprom compat entry attributesSrinivas Kandagatla1-38/+14
2020-03-25nvmem: core: remove nvmem_sysfs_get_groups()Srinivas Kandagatla1-2/+272
2020-03-25nvmem: core: use is_bin_visible for permissionsSrinivas Kandagatla1-1/+1
2020-03-25nvmem: core: use device_register and device_unregisterSrinivas Kandagatla1-5/+2
2020-03-25nvmem: core: add root_only member to nvmem device structSrinivas Kandagatla1-0/+1
2020-03-19nvmem: core: validate nvmem config before parsingSrinivas Kandagatla1-0/+3
2020-03-19nvmem: release the write-protect pinKhouloud Touil1-0/+1
2020-03-19nvmem: fix memory leak in error pathBartosz Golaszewski1-2/+6
2020-03-19nvmem: add a newline for readabilityBartosz Golaszewski1-0/+1
2020-03-19nvmem: remove a stray newline in nvmem_register()Bartosz Golaszewski1-1/+0
2020-03-19nvmem: core: add nvmem_cell_read_u64Yangtao Li1-0/+15
2020-03-19nvmem: core: add nvmem_cell_read_commonYangtao Li1-35/+19
2020-02-07Merge branch 'i2c/for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/w...Linus Torvalds1-2/+17
2020-01-10nvmem: core: fix memory abort in cleanup pathBitan Biswas1-3/+5
2020-01-10nvmem: fix a 'makes pointer from integer without a cast' build warningBartosz Golaszewski1-1/+1
2020-01-09nvmem: add support for the write-protect pinKhouloud Touil1-2/+17
2019-10-07nvmem: core: add nvmem_device_findThomas Bogendoerfer1-34/+27
2019-07-30drivers: Introduce device lookup variants by of_nodeSuzuki K Poulose1-6/+1
2019-06-24bus_find_device: Unify the match callback with class_find_deviceSuzuki K Poulose1-1/+1
2019-04-25nvmem: core: add NVMEM_SYSFS KconfigSrinivas Kandagatla1-260/+4
2019-04-25nvmem: core: fix read buffer in placeJorge Ramirez-Ortiz1-5/+10
2019-04-25nvmem: core: add nvmem_cell_read_u16Fabrice Gasnier1-0/+37
2019-02-19nvmem: core: don't check the return value of notifier chain callBartosz Golaszewski1-3/+1
2019-01-31nvmem: core: Avoid useless iterations in nvmem_cell_get_from_lookup()Alban Bedel1-3/+2
2019-01-31nvmem: core: Fix device reference leakAlban Bedel1-0/+2
2019-01-31nvmem: core: Always reference the device returned by nvmem_device_get()Alban Bedel1-1/+1
2019-01-31nvmem: core: Properly handle connection ID in of_nvmem_device_get()Alban Bedel1-3/+4
2019-01-31nvmem: core: Fix cell lookup when no cell is foundAlban Bedel1-6/+10
2019-01-31nvmem: core: Fix of_nvmem_cell_get() for optional cellsAlban Bedel1-1/+1
2019-01-31nvmem: core: Set the provider read-only when no write callback is givenAlban Bedel1-2/+2
2018-12-06nvmem: add new config optionBartosz Golaszewski1-1/+2
2018-12-06nvmem: Move nvmem_type_str array to its only userAndy Shevchenko1-0/+7
2018-12-06nvmem: add type attributeAlexandre Belloni1-0/+21
2018-11-11nvmem: core: fix regression in of_nvmem_cell_get()Srinivas Kandagatla1-4/+6
2018-10-15nvmem: hide unused nvmem_find_cell_by_index functionArnd Bergmann1-16/+16
2018-10-15nvmem: fix nvmem_cell_get_from_lookup()Bartosz Golaszewski1-2/+3
2018-10-15nvmem: Convert to using %pOFn instead of device_node.nameRob Herring1-1/+3
2018-09-28nvmem: make nvmem_add_cells() staticSrinivas Kandagatla1-2/+1
2018-09-28nvmem: use octal permissions instead of constantsBartosz Golaszewski1-4/+4
2018-09-28nvmem: fix commenting styleBartosz Golaszewski1-2/+2
2018-09-28nvmem: make the naming of arguments in nvmem_cell_get() consistentBartosz Golaszewski1-13/+14
2018-09-28nvmem: use SPDX license identifiersBartosz Golaszewski1-9/+1
2018-09-28nvmem: add a notifier chainBartosz Golaszewski1-0/+36
2018-09-28nvmem: add support for cell lookups from machine codeBartosz Golaszewski1-26/+103
2018-09-28nvmem: resolve cells from DT at registration timeBartosz Golaszewski1-48/+75
2018-09-28nvmem: add support for cell infoBartosz Golaszewski1-0/+72
2018-09-28nvmem: remove the global cell listBartosz Golaszewski1-49/+15
2018-09-28nvmem: change the signature of nvmem_unregister()Bartosz Golaszewski1-6/+2
2018-09-28nvmem: use krefBartosz Golaszewski1-22/+22
2018-09-28nvmem: check the return value of nvmem_add_cells()Bartosz Golaszewski1-2/+8
2018-09-28nvmem: remove a stray newlineBartosz Golaszewski1-1/+0
2018-09-28nvmem: use list_for_each_entry_safe in nvmem_device_remove_all_cells()Bartosz Golaszewski1-5/+2
2018-09-28nvmem: remove the name field from struct nvmem_deviceBartosz Golaszewski1-2/+1
2018-09-28nvmem: provide nvmem_dev_name()Bartosz Golaszewski1-0/+13
2018-09-12nvmem: core: return error code instead of NULL from nvmem_device_getSrinivas Kandagatla1-1/+1
2018-07-16Merge 4.18-rc5 into char-misc-nextGreg Kroah-Hartman1-0/+4
2018-07-07nvmem: core: remove unused nvmem_device ncells memberSrinivas Kandagatla1-2/+0
2018-07-07nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash usDouglas Anderson1-0/+4
2018-05-14nvmem: properly handle returned value nvmem_reg_readMathieu Malaterre1-0/+7
2018-05-14nvmem: core: describe add missing dev function parameterSrinivas Kandagatla1-0/+2
2018-05-14drivers: nvmem: Export nvmem_add_cells()Andrew Lunn1-7/+17
2018-03-14nvmem: Introduce devm_nvmem_(un)register()Andrey Smirnov1-0/+59
2018-03-14nvmem: core: Allow specifying device name verbatimAndrey Smirnov1-3/+8
2017-12-19nvmem: core: switch to device_property_present for reading property "read-only"Heiner Kallweit1-4/+2
2017-12-19nvmem: core: let stride and word_size default to 1Heiner Kallweit1-2/+2
2017-12-19nvmem: core: Deduplicate bus_find_device() by name matchingLukas Wunner1-6/+1
2017-11-08nvmem: set nvmem->owner to nvmem->dev->driver->owner if unsetMasahiro Yamada1-0/+2
2017-10-16Merge 4.14-rc5 into char-misc-nextGreg Kroah-Hartman1-1/+2
2017-09-18nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditionalMasahiro Yamada1-2/+2
2017-09-18nvmem: remove inline in drivers/nvmem/core.cMasahiro Yamada1-4/+3
2017-09-18nvmem: add missing of_node_put() in of_nvmem_cell_get()Masahiro Yamada1-0/+1
2017-09-18nvmem: core: return EFBIG on out-of-range writeGuy Shapiro1-1/+1
2017-08-28nvmem: core: remove unneeded NULL checkDan Carpenter1-1/+1
2017-08-28nvmem: core: Add nvmem_cell_read_u32Leonard Crestez1-0/+37
2017-08-28nvmem: Convert to using %pOF instead of full_nameRob Herring1-2/+2
2017-06-09nvmem: core: add locking to nvmem_find_cellHeiner Kallweit1-1/+7
2017-06-09nvmem: core: Call put_device() in nvmem_unregister()Andrey Smirnov1-0/+1
2017-06-09nvmem: core: fix leaks on registration errorsJohan Hovold1-5/+8
2017-04-08nvmem: core: Allow allocating several anonymous nvmem devicesAban Bedel1-1/+2
2017-01-25nvmem: core: Allow getting nvmem cell with a NULL cell idVivek Gautam1-3/+8
2017-01-25nvmem: core: Correct a bunch of function documentationsVivek Gautam1-14/+16
2017-01-25nvmem: core: Allow ignoring length when reading a cellVivek Gautam1-2/+4
2017-01-04nvmem: fix nvmem_cell_read() return type docBrian Norris1-2/+2
2016-05-27remove lots of IS_ERR_VALUE abusesArnd Bergmann1-11/+11
2016-05-01nvmem: core: remove regmap dependencySrinivas Kandagatla1-27/+40
2016-03-01nvmem: Add backwards compatibility support for older EEPROM drivers.Andrew Lunn1-8/+76
2016-03-01nvmem: Add flag to export NVMEM to root onlyAndrew Lunn1-2/+55
2016-02-11nvmem: core: fix error path in nvmem_add_cells()Rasmus Villemoes1-1/+3
2016-02-07nvmem: core: return error for non word aligned accessSrinivas Kandagatla1-0/+6
2015-10-04nvmem: core: Fix memory leak in nvmem_cell_writeAxel Lin1-1/+1
2015-10-04nvmem: core: Handle shift bits in-place if cell->nbits is non-zeroAxel Lin1-1/+1
2015-10-04nvmem: core: fix the out-of-range leak in read/write()ZhengShunQian1-2/+2
2015-08-05nvmem: Add nvmem_device based consumer apis.Srinivas Kandagatla1-0/+258
2015-08-05nvmem: Add a simple NVMEM framework for consumersSrinivas Kandagatla1-1/+420
2015-08-05nvmem: Add a simple NVMEM framework for nvmem providersSrinivas Kandagatla1-0/+406