From patchwork Tue Jun 19 16:12:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10474983 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ABE1060383 for ; Tue, 19 Jun 2018 16:16:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D0DB28AF5 for ; Tue, 19 Jun 2018 16:16:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E90028EBB; Tue, 19 Jun 2018 16:16:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4109D28ED2 for ; Tue, 19 Jun 2018 16:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966591AbeFSQPj (ORCPT ); Tue, 19 Jun 2018 12:15:39 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51676 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967020AbeFSQNJ (ORCPT ); Tue, 19 Jun 2018 12:13:09 -0400 Received: by mail-wm0-f65.google.com with SMTP id r15-v6so1330971wmc.1 for ; Tue, 19 Jun 2018 09:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WHl8y2e/CNxRLOFMGZ23TuP+wCFFLpgrtDsLMJiqlxg=; b=jTDyWxM67bZIvl1zbpKV9K/r0m1UzwrXuvlTj4lwzpgChSzcoO+KRl1P6I1dCAXngJ VoUXAwxliDPFZM6O8AVW56KBiejXwYXrtRWVhHCD/j/k6Wg0QIsqzmEEGNj3mVRCvY6W IgkWnsVbV4X6Z/RImmc7h5PiMTEVLz3lRGUe8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WHl8y2e/CNxRLOFMGZ23TuP+wCFFLpgrtDsLMJiqlxg=; b=fv6bIIjjBTNN5YA2/swl1P4uAA/3g+tXowjdmvfzk1BfNOeQZ9Ac5RP7emisLfOo2c 0eb1c2Xgv2xT/uWSQzmak43VunwnnO2p2zdFcieFQtSvF2otfXMxNvVtMgSpYGPN+pEF CFLDO6CH3NJ66RFgLg1zHUsuaH2+OlTxiNtWbqLHof3Ui5CL6nHWhbwMM5+c8HikoQhB P3wRvuboFBlc1ncKk1Rmxkb7FiXZW6tbz/dBRAFRf7LjQiLtReRxYDnRJj+qUevvBHk5 QzfecmCwVijiu5Tx/reTBZUG3cfF82F6UZgWGsw911zx9/NNBjpfP5NpILUxfmgLILnO EMtg== X-Gm-Message-State: APt69E3wQ/We550GP8Lrva0KCxwa+TP0Dm7bkooV9cfcNipihVcerzYM q6MhAAxdLiW+sNVj3obExeeJoA== X-Google-Smtp-Source: ADUXVKJhvOEHcZ/VP57h0cJXumvT7sT4BN3GfgDluWBKVzLMGDhRYGXJwhvWbmev5GxHGhZsICoZGw== X-Received: by 2002:a1c:17d4:: with SMTP id 203-v6mr11849072wmx.75.1529424788535; Tue, 19 Jun 2018 09:13:08 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id r5-v6sm47248wrp.59.2018.06.19.09.13.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jun 2018 09:13:07 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: robh+dt@kernel.org, kramasub@codeaurora.org, sdharia@quicinc.com, linux-kernel@vger.kernel.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v4 2/5] slimbus: core: rearrange slim_eaddr structure Date: Tue, 19 Jun 2018 17:12:58 +0100 Message-Id: <20180619161301.4556-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180619161301.4556-1-srinivas.kandagatla@linaro.org> References: <20180619161301.4556-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Rearrange struct slim_eaddr so that the structure is packed correctly to be able to send in SLIMBus messages. Signed-off-by: Srinivas Kandagatla --- include/linux/slimbus.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/slimbus.h b/include/linux/slimbus.h index efa36a852dc3..63801bcc5e60 100644 --- a/include/linux/slimbus.h +++ b/include/linux/slimbus.h @@ -14,16 +14,16 @@ extern struct bus_type slimbus_bus; /** * struct slim_eaddr - Enumeration address for a SLIMbus device - * @manf_id: Manufacturer Id for the device - * @prod_code: Product code - * @dev_index: Device index * @instance: Instance value + * @dev_index: Device index + * @prod_code: Product code + * @manf_id: Manufacturer Id for the device */ struct slim_eaddr { - u16 manf_id; - u16 prod_code; - u8 dev_index; u8 instance; + u8 dev_index; + u16 prod_code; + u16 manf_id; } __packed; /**