* [PATCH] of: Request and map make argument name constant @ 2014-10-21 16:27 Matthias Brugger [not found] ` <1413908845-11526-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Matthias Brugger @ 2014-10-21 16:27 UTC (permalink / raw) To: grant.likely, robh+dt; +Cc: devicetree, linux-kernel, linux, Matthias Brugger This patch makes the name argument from of_io_request_and_map constant. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> --- drivers/of/address.c | 2 +- include/linux/of_address.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/address.c b/drivers/of/address.c index afdb782..e02828f 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -871,7 +871,7 @@ EXPORT_SYMBOL(of_iomap); * return PTR_ERR(base); */ void __iomem *of_io_request_and_map(struct device_node *np, int index, - char *name) + const char *name) { struct resource res; void __iomem *mem; diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 8cb14eb..d88e81b 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -106,7 +106,7 @@ extern int of_address_to_resource(struct device_node *dev, int index, struct resource *r); void __iomem *of_iomap(struct device_node *node, int index); void __iomem *of_io_request_and_map(struct device_node *device, - int index, char *name); + int index, const char *name); #else #include <linux/io.h> @@ -123,7 +123,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index) } static inline void __iomem *of_io_request_and_map(struct device_node *device, - int index, char *name) + int index, const char *name) { return IOMEM_ERR_PTR(-EINVAL); } -- 1.9.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1413908845-11526-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] of: Request and map make argument name constant [not found] ` <1413908845-11526-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2014-10-31 16:21 ` Matthias Brugger 2014-11-04 16:00 ` Grant Likely 1 sibling, 0 replies; 3+ messages in thread From: Matthias Brugger @ 2014-10-31 16:21 UTC (permalink / raw) To: Grant Likely, Rob Herring Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Oleksij Rempel, Matthias Brugger Hi all, 2014-10-21 18:27 GMT+02:00 Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > This patch makes the name argument from of_io_request_and_map constant. Any comments on this patch? Thanks, Matthias > > Signed-off-by: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > drivers/of/address.c | 2 +- > include/linux/of_address.h | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/of/address.c b/drivers/of/address.c > index afdb782..e02828f 100644 > --- a/drivers/of/address.c > +++ b/drivers/of/address.c > @@ -871,7 +871,7 @@ EXPORT_SYMBOL(of_iomap); > * return PTR_ERR(base); > */ > void __iomem *of_io_request_and_map(struct device_node *np, int index, > - char *name) > + const char *name) > { > struct resource res; > void __iomem *mem; > diff --git a/include/linux/of_address.h b/include/linux/of_address.h > index 8cb14eb..d88e81b 100644 > --- a/include/linux/of_address.h > +++ b/include/linux/of_address.h > @@ -106,7 +106,7 @@ extern int of_address_to_resource(struct device_node *dev, int index, > struct resource *r); > void __iomem *of_iomap(struct device_node *node, int index); > void __iomem *of_io_request_and_map(struct device_node *device, > - int index, char *name); > + int index, const char *name); > #else > > #include <linux/io.h> > @@ -123,7 +123,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index) > } > > static inline void __iomem *of_io_request_and_map(struct device_node *device, > - int index, char *name) > + int index, const char *name) > { > return IOMEM_ERR_PTR(-EINVAL); > } > -- > 1.9.1 > -- motzblog.wordpress.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] of: Request and map make argument name constant [not found] ` <1413908845-11526-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2014-10-31 16:21 ` Matthias Brugger @ 2014-11-04 16:00 ` Grant Likely 1 sibling, 0 replies; 3+ messages in thread From: Grant Likely @ 2014-11-04 16:00 UTC (permalink / raw) To: robh+dt-DgEjT+Ai2ygdnm+yROfE0A Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-YEK0n+YFykbzxQdaRaTXBw, Matthias Brugger On Tue, 21 Oct 2014 18:27:25 +0200 , Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > This patch makes the name argument from of_io_request_and_map constant. > > Signed-off-by: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Applied, thanks. g. > --- > drivers/of/address.c | 2 +- > include/linux/of_address.h | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/of/address.c b/drivers/of/address.c > index afdb782..e02828f 100644 > --- a/drivers/of/address.c > +++ b/drivers/of/address.c > @@ -871,7 +871,7 @@ EXPORT_SYMBOL(of_iomap); > * return PTR_ERR(base); > */ > void __iomem *of_io_request_and_map(struct device_node *np, int index, > - char *name) > + const char *name) > { > struct resource res; > void __iomem *mem; > diff --git a/include/linux/of_address.h b/include/linux/of_address.h > index 8cb14eb..d88e81b 100644 > --- a/include/linux/of_address.h > +++ b/include/linux/of_address.h > @@ -106,7 +106,7 @@ extern int of_address_to_resource(struct device_node *dev, int index, > struct resource *r); > void __iomem *of_iomap(struct device_node *node, int index); > void __iomem *of_io_request_and_map(struct device_node *device, > - int index, char *name); > + int index, const char *name); > #else > > #include <linux/io.h> > @@ -123,7 +123,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index) > } > > static inline void __iomem *of_io_request_and_map(struct device_node *device, > - int index, char *name) > + int index, const char *name) > { > return IOMEM_ERR_PTR(-EINVAL); > } > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-04 16:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-21 16:27 [PATCH] of: Request and map make argument name constant Matthias Brugger [not found] ` <1413908845-11526-1-git-send-email-matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2014-10-31 16:21 ` Matthias Brugger 2014-11-04 16:00 ` Grant Likely
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).