]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: SDCA: Reorder members of hide struct to remove holes
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 20 Aug 2025 16:37:17 +0000 (17:37 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 4 Sep 2025 11:53:07 +0000 (12:53 +0100)
Remove some padding holes in the sdca_entity_hide struct by reordering
the members.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Message-ID: <20250820163717.1095846-4-ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sdca_function.h

index 06ec126cdcc34abf8ca591c0b8ca2233433137be..ea68856e4c8c44865f46ef670ae4b17c41f7625e 100644 (file)
@@ -1063,27 +1063,30 @@ struct sdca_entity_ge {
 /**
  * struct sdca_entity_hide - information specific to HIDE Entities
  * @hid: HID device structure
- * @hidtx_ids: HIDTx Report ID
  * @num_hidtx_ids: number of HIDTx Report ID
- * @hidrx_ids: HIDRx Report ID
  * @num_hidrx_ids: number of HIDRx Report ID
- * @hide_reside_function_num: indicating which Audio Function Numbers within this Device
- * @max_delay: the maximum time in microseconds allowed for the Device to change the ownership from Device to Host
- * @af_number_list: which Audio Function Numbers within this Device are sending/receiving the messages in this HIDE
- * @hid_desc: HID descriptor for the HIDE Entity
+ * @hidtx_ids: HIDTx Report ID
+ * @hidrx_ids: HIDRx Report ID
+ * @af_number_list: which Audio Function Numbers within this Device are
+ * sending/receiving the messages in this HIDE
+ * @hide_reside_function_num: indicating which Audio Function Numbers
+ * within this Device
+ * @max_delay: the maximum time in microseconds allowed for the Device
+ * to change the ownership from Device to Host
  * @hid_report_desc: HID Report Descriptor for the HIDE Entity
+ * @hid_desc: HID descriptor for the HIDE Entity
  */
 struct sdca_entity_hide {
        struct hid_device *hid;
        unsigned int *hidtx_ids;
-       int num_hidtx_ids;
        unsigned int *hidrx_ids;
+       int num_hidtx_ids;
        int num_hidrx_ids;
+       unsigned int af_number_list[SDCA_MAX_FUNCTION_COUNT];
        unsigned int hide_reside_function_num;
        unsigned int max_delay;
-       unsigned int af_number_list[SDCA_MAX_FUNCTION_COUNT];
-       struct hid_descriptor hid_desc;
        unsigned char *hid_report_desc;
+       struct hid_descriptor hid_desc;
 };
 
 /**