]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: siano: Remove unused structures
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 27 May 2024 21:08:57 +0000 (21:08 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 31 May 2024 11:51:16 +0000 (13:51 +0200)
These structs are not used in the code, remove them.

This fixes the following cocci warning:

drivers/media/common/siano/smscoreapi.h:1049:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
drivers/media/common/siano/smscoreapi.h:1055:4-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/common/siano/smscoreapi.h

index 46dc74ac93184c7ee6a9ca47a7aa3b8f45c34f1a..bc61bc8b9ea9cc5c2cc6f78fb3f3fab4d50da5cd 100644 (file)
@@ -1042,20 +1042,6 @@ struct sms_srvm_signal_status {
        u32 request_id;
 };
 
-struct sms_i2c_req {
-       u32     device_address; /* I2c device address */
-       u32     write_count; /* number of bytes to write */
-       u32     read_count; /* number of bytes to read */
-       u8      Data[1];
-};
-
-struct sms_i2c_res {
-       u32     status; /* non-zero value in case of failure */
-       u32     read_count; /* number of bytes read */
-       u8      Data[1];
-};
-
-
 struct smscore_config_gpio {
 #define SMS_GPIO_DIRECTION_INPUT  0
 #define SMS_GPIO_DIRECTION_OUTPUT 1