OSDN Git Service

drm/i915/sdvo: prefer __packed over __attribute__((packed))
authorJani Nikula <jani.nikula@intel.com>
Thu, 17 Mar 2022 17:33:55 +0000 (19:33 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 21 Mar 2022 13:10:49 +0000 (15:10 +0200)
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
drivers/gpu/drm/i915/display/intel_sdvo.c

index 158e750..328a8f2 100644 (file)
@@ -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),