Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1483983
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 6/7] mfd: omap-usb-host: Return value is not 'const int' |
| Date | 2016-09-15 12:50 +0200 |
| Message-ID | <shCoX-5Sc-59@gated-at.bofh.it> (permalink) |
| References | <shCoW-5Sc-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Change from 'const int' to just 'int'.
Cc: <robh+dt@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
drivers/mfd/omap-usb-host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 1d924d1..7aab376 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -162,7 +162,7 @@ static const char * const port_modes[] = {
* provided port mode string as per the port_modes table.
* If no match is found it returns -ENODEV
*/
-static const int omap_usbhs_get_dt_port_mode(const char *mode)
+static int omap_usbhs_get_dt_port_mode(const char *mode)
{
int i;
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] mfd: Fix all W=1 warnings Lee Jones <lee.jones@linaro.org> - 2016-09-15 12:50 +0200
[PATCH 3/7] mfd: db8500-prcmu: Remove unused *prcmu_set_ddr_opp() calls Lee Jones <lee.jones@linaro.org> - 2016-09-15 12:50 +0200
[PATCH 7/7] mfd: cros_ec_spi: Remove unused variable 'request' Lee Jones <lee.jones@linaro.org> - 2016-09-15 12:50 +0200
[PATCH 6/7] mfd: omap-usb-host: Return value is not 'const int' Lee Jones <lee.jones@linaro.org> - 2016-09-15 12:50 +0200
Re: [PATCH 6/7] mfd: omap-usb-host: Return value is not 'const int' Arnd Bergmann <arnd@arndb.de> - 2016-09-15 13:40 +0200
Re: [PATCH 0/7] mfd: Fix all W=1 warnings Arnd Bergmann <arnd@arndb.de> - 2016-09-15 13:40 +0200
Re: [PATCH 0/7] mfd: Fix all W=1 warnings Linus Walleij <linus.walleij@linaro.org> - 2016-09-15 14:50 +0200
csiph-web