mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
drm/i915/sdvo: prefer __packed over __attribute__((packed))
The kernel preference is to use the __packed macro instead of the direct __attribute__. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220317173355.336835-1-jani.nikula@intel.com
This commit is contained in:
@@ -283,7 +283,7 @@ static bool intel_sdvo_read_byte(struct intel_sdvo *intel_sdvo, u8 addr, u8 *ch)
|
||||
static const struct {
|
||||
u8 cmd;
|
||||
const char *name;
|
||||
} __attribute__ ((packed)) sdvo_cmd_names[] = {
|
||||
} __packed sdvo_cmd_names[] = {
|
||||
SDVO_CMD_NAME_ENTRY(RESET),
|
||||
SDVO_CMD_NAME_ENTRY(GET_DEVICE_CAPS),
|
||||
SDVO_CMD_NAME_ENTRY(GET_FIRMWARE_REV),
|
||||
|
||||
Reference in New Issue
Block a user