diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2016-08-12 14:46:14 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-08-31 18:21:35 +0200 |
commit | 84281c2d72a70456a3ba8d1e49548dd469f2e9d8 (patch) | |
tree | 84ef4b8dec82c7dad67e2fbc089b5851c7788650 /drivers/rtc/rtc-m48t86.c | |
parent | Documentation: dt: Intersil isl12057 is not a trivial device (diff) | |
download | linux-84281c2d72a70456a3ba8d1e49548dd469f2e9d8.tar.xz linux-84281c2d72a70456a3ba8d1e49548dd469f2e9d8.zip |
rtc: sysfs: fix a cast removing the const attribute
The char pointer buf_ptr is assigned an address from a const char
pointer buf (parameter of wakealarm_store).
The data pointer by buf_ptr is never modified.
So casting it to a (char *) is useless.
This patch remove this cast, and transform buf_ptr to a const char pointer.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-m48t86.c')
0 files changed, 0 insertions, 0 deletions