aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2021-12-07 16:02:43 +0200
committerTudor Ambarus <[email protected]>2021-12-07 17:05:10 +0200
commitff67592cbdfc74c4237b2d02c4cb50a5eef56ff1 (patch)
tree72db7da2b1269edf45eb497f5c8e5215656d84d7 /tools/perf/scripts/python
parenteb726c322020b95bfc1fbf0e83d0fd41c2500e96 (diff)
mtd: spi-nor: Introduce spi_nor_set_mtd_info()
Used to init all the mtd_info fields. Move the mtd_info init the last thing in the spi_nor_scan(), so that we avoid superfluous initialization of the mtd_info fields in case of errors. While here use common naming scheme for functions that are setting mtd_info fields: s/spi_nor_register_locking_ops/spi_nor_set_mtd_locking_ops s/spi_nor_otp_init/spi_nor_set_mtd_otp_ops The functions names are self explanatory, get rid of the comment for the OTP function. Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Michael Walle <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions