Skip to content

Commit 1dd525a

Browse files
danmoisnunojsa
authored andcommitted
madura: platforms: linux_platform.c: Discard const
Perform cast for solving warning about discarding the 'const' qualifier. Signed-off-by: George Mois <george.mois@analog.com>
1 parent 0af1565 commit 1dd525a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/madura/platforms/linux_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ FILE* __fopen (adi_hal_Cfg_t *hal, const char * filename, const char *mode)
655655
if (ret < 0)
656656
return NULL;
657657

658-
stream->start = stream->ptr = stream->fw->data;
658+
stream->start = stream->ptr = (char *)stream->fw->data;
659659
stream->end = stream->start + stream->fw->size;
660660

661661
return stream;

0 commit comments

Comments
 (0)