Skip to content

Commit 6cb2c15

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: optimize sdw_master_prop
Make pahole happy by moving pointers and u64 first instead of interleaving them. Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 444d682 commit 6cb2c15

File tree

1 file changed

+7
-7
lines changed
  • include/linux/soundwire

1 file changed

+7
-7
lines changed

include/linux/soundwire/sdw.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,14 @@ struct sdw_slave_prop {
406406

407407
/**
408408
* struct sdw_master_prop - Master properties
409+
* @clk_gears: Clock gears supported
410+
* @clk_freq: Clock frequencies supported, in Hz
411+
* @quirks: bitmask identifying optional behavior beyond the scope of the MIPI specification
409412
* @revision: MIPI spec version of the implementation
410413
* @clk_stop_modes: Bitmap, bit N set when clock-stop-modeN supported
411414
* @max_clk_freq: Maximum Bus clock frequency, in Hz
412415
* @num_clk_gears: Number of clock gears supported
413-
* @clk_gears: Clock gears supported
414416
* @num_clk_freq: Number of clock frequencies supported, in Hz
415-
* @clk_freq: Clock frequencies supported, in Hz
416417
* @default_frame_rate: Controller default Frame rate, in Hz
417418
* @default_row: Number of rows
418419
* @default_col: Number of columns
@@ -421,24 +422,23 @@ struct sdw_slave_prop {
421422
* command
422423
* @mclk_freq: clock reference passed to SoundWire Master, in Hz.
423424
* @hw_disabled: if true, the Master is not functional, typically due to pin-mux
424-
* @quirks: bitmask identifying optional behavior beyond the scope of the MIPI specification
425425
*/
426426
struct sdw_master_prop {
427+
u32 *clk_gears;
428+
u32 *clk_freq;
429+
u64 quirks;
427430
u32 revision;
428431
u32 clk_stop_modes;
429432
u32 max_clk_freq;
430433
u32 num_clk_gears;
431-
u32 *clk_gears;
432434
u32 num_clk_freq;
433-
u32 *clk_freq;
434435
u32 default_frame_rate;
435436
u32 default_row;
436437
u32 default_col;
437-
bool dynamic_frame;
438438
u32 err_threshold;
439439
u32 mclk_freq;
440+
bool dynamic_frame;
440441
bool hw_disabled;
441-
u64 quirks;
442442
};
443443

444444
/* Definitions for Master quirks */

0 commit comments

Comments
 (0)