summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-12-10 15:35:17 -0800
committerLee Jones <lee.jones@linaro.org>2014-01-21 08:28:07 +0000
commit5eec14ccf90942fecd89e147e0b88ab12dd83e70 (patch)
tree616374af9fdabb3d67e2740c7554739eb5c4484f /drivers
parentbae911a055a3d88c8754e9c1879f29da6ba16663 (diff)
downloadkernel-common-5eec14ccf90942fecd89e147e0b88ab12dd83e70.tar.gz
kernel-common-5eec14ccf90942fecd89e147e0b88ab12dd83e70.tar.bz2
kernel-common-5eec14ccf90942fecd89e147e0b88ab12dd83e70.zip
mfd: ssbi: Constify buffer in ssbi_write
In preparation for passing a const pointer directly to ssbi_write() from the regmap APIs. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/ssbi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c
index 435c6f7a3b72..dd1d28f343f6 100644
--- a/drivers/mfd/ssbi.c
+++ b/drivers/mfd/ssbi.c
@@ -77,7 +77,7 @@ struct ssbi {
spinlock_t lock;
enum ssbi_controller_type controller_type;
int (*read)(struct ssbi *, u16 addr, u8 *buf, int len);
- int (*write)(struct ssbi *, u16 addr, u8 *buf, int len);
+ int (*write)(struct ssbi *, u16 addr, const u8 *buf, int len);
};
#define to_ssbi(dev) platform_get_drvdata(to_platform_device(dev))
@@ -146,7 +146,7 @@ err:
}
static int
-ssbi_write_bytes(struct ssbi *ssbi, u16 addr, u8 *buf, int len)
+ssbi_write_bytes(struct ssbi *ssbi, u16 addr, const u8 *buf, int len)
{
int ret = 0;
@@ -223,7 +223,7 @@ err:
}
static int
-ssbi_pa_write_bytes(struct ssbi *ssbi, u16 addr, u8 *buf, int len)
+ssbi_pa_write_bytes(struct ssbi *ssbi, u16 addr, const u8 *buf, int len)
{
u32 cmd;
int ret = 0;
@@ -255,7 +255,7 @@ int ssbi_read(struct device *dev, u16 addr, u8 *buf, int len)
}
EXPORT_SYMBOL_GPL(ssbi_read);
-int ssbi_write(struct device *dev, u16 addr, u8 *buf, int len)
+int ssbi_write(struct device *dev, u16 addr, const u8 *buf, int len)
{
struct ssbi *ssbi = to_ssbi(dev);
unsigned long flags;