aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2021-10-29 20:26:10 +0300
committerTudor Ambarus <[email protected]>2021-11-17 14:36:01 +0200
commit7158c86e560789a4a07fe161cc284f8058d52ccc (patch)
tree64adc7d3dcf807ae1d1b95e1e32d8496288b98d2 /tools/perf/scripts/python
parenta360ae43217c45fb7ca37603ffb6c06aad2b3929 (diff)
mtd: spi-nor: core: Use container_of to get the pointer to struct spi_nor
"struct mtd_info mtd" is member of "struct spi_nor", there's no need to use "mtd->priv". Get the pointer to the containing struct spi_nor by using container_of. While here, make the function inline and get rid of the __maybe_unused. 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