Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: most: dim2: correct misleading struct type name

Correct the misleading struct type name dim_ch_state_t to dim_ch_state
since this not a typedef but a normal structure declaration.

Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y1GDQO+06fD24Pf/@debian-BULLSEYE-live-builder-AMD64
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Deepak R Varma and committed by
Greg Kroah-Hartman
ea679d8e 1f3e0b41

+7 -7
+2 -2
drivers/staging/most/dim2/dim2.c
··· 161 161 struct list_head *head = &hdm_ch->pending_list; 162 162 struct mbo *mbo; 163 163 unsigned long flags; 164 - struct dim_ch_state_t st; 164 + struct dim_ch_state st; 165 165 166 166 BUG_ON(!hdm_ch); 167 167 BUG_ON(!hdm_ch->is_initialized); ··· 259 259 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) 260 260 { 261 261 struct hdm_channel *hdm_ch = dev->hch + ch_idx; 262 - struct dim_ch_state_t st; 262 + struct dim_ch_state st; 263 263 struct list_head *head; 264 264 struct mbo *mbo; 265 265 int done_buffers;
+2 -2
drivers/staging/most/dim2/hal.c
··· 943 943 return channel_service(ch); 944 944 } 945 945 946 - struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch, 947 - struct dim_ch_state_t *state_ptr) 946 + struct dim_ch_state *dim_get_channel_state(struct dim_channel *ch, 947 + struct dim_ch_state *state_ptr) 948 948 { 949 949 if (!ch || !state_ptr) 950 950 return NULL;
+3 -3
drivers/staging/most/dim2/hal.h
··· 27 27 CLK_8192FS = 7, 28 28 }; 29 29 30 - struct dim_ch_state_t { 30 + struct dim_ch_state { 31 31 bool ready; /* Shows readiness to enqueue next buffer */ 32 32 u16 done_buffers; /* Number of completed buffers */ 33 33 }; ··· 87 87 88 88 u8 dim_service_channel(struct dim_channel *ch); 89 89 90 - struct dim_ch_state_t *dim_get_channel_state(struct dim_channel *ch, 91 - struct dim_ch_state_t *state_ptr); 90 + struct dim_ch_state *dim_get_channel_state(struct dim_channel *ch, 91 + struct dim_ch_state *state_ptr); 92 92 93 93 u16 dim_dbr_space(struct dim_channel *ch); 94 94