49ff9d73ff713c7e33bcba888d60974d62cb03cf
[openwrt/staging/linusw.git] /
1 From ce89955e44f3ab41262b02d8e1e65c3455d66c4d Mon Sep 17 00:00:00 2001
2 From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
3 Date: Fri, 28 Jun 2024 13:59:40 +0200
4 Subject: [PATCH 1158/1215] media: uapi: pisp_be_config: Re-sort
5 pisp_be_tiles_config
6
7 The order of the members of pisp_be_tiles_config is relevant
8 as the driver logic assumes 'config' to be at offset 0.
9
10 Re-sort the member to match the driver's expectations.
11
12 Fixes: c6c49bac8770 ("media: uapi: Add Raspberry Pi PiSP Back End uAPI")
13 Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
14 ---
15 include/uapi/linux/media/raspberrypi/pisp_be_config.h | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/include/uapi/linux/media/raspberrypi/pisp_be_config.h
19 +++ b/include/uapi/linux/media/raspberrypi/pisp_be_config.h
20 @@ -919,9 +919,9 @@ struct pisp_tile {
21 * @config: PiSP Back End configuration
22 */
23 struct pisp_be_tiles_config {
24 + struct pisp_be_config config;
25 struct pisp_tile tiles[PISP_BACK_END_NUM_TILES];
26 __u32 num_tiles;
27 - struct pisp_be_config config;
28 } __attribute__((packed));
29
30 #endif /* _UAPI_PISP_BE_CONFIG_H_ */