projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880fcc4
)
mtd: Drop superfluous const qualifier
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2024 14:20:40 +0000
(17:20 +0300)
committer
Tom Rini
<trini@konsulko.com>
Mon, 25 Nov 2024 19:12:19 +0000
(13:12 -0600)
The compiler will ignore it anyway:
include/linux/mtd/mtd.h:342:15: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/linux/mtd/mtd.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/mtd.h
b/include/linux/mtd/mtd.h
index 6751fb52c5a5fd82f89078af0eda6387fd319cd1..3ffcd40807d004acef0affe25386d6118fe98451 100644
(file)
--- a/
include/linux/mtd/mtd.h
+++ b/
include/linux/mtd/mtd.h
@@
-339,7
+339,7
@@
static inline void mtd_set_ofnode(struct mtd_info *mtd, ofnode node)
dev_set_ofnode(mtd->dev, node);
}
-static inline
const
ofnode mtd_get_ofnode(struct mtd_info *mtd)
+static inline ofnode mtd_get_ofnode(struct mtd_info *mtd)
{
return dev_ofnode(mtd->dev);
}