From patchwork Thu May 17 08:58:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10405993 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 DE56C60247 for ; Thu, 17 May 2018 09:01:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C60EA289CE for ; Thu, 17 May 2018 09:01:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C45C7289F2; Thu, 17 May 2018 09:01:22 +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=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13185289F2 for ; Thu, 17 May 2018 09:01:20 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B73C7267388; Thu, 17 May 2018 11:01:04 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C02F526706F; Thu, 17 May 2018 11:00:59 +0200 (CEST) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 42048266DF0 for ; Thu, 17 May 2018 11:00:58 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id m129-v6so7524550wmb.3 for ; Thu, 17 May 2018 02:00:58 -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=BjDtyMyE7R0oZUWc6w7kXfAphBPwLxdnLHfKtjOJWARYzAY89rRTXzwxhex7XjcmqO RPLHvN8Yp7oxa86FVUTJ4tTfYa17Vy5vWmD0gKrfDAh7O6XToUSGbF5ReJGVBZQvD/gV pWWB4W8X7WrMdqHPjVQsRT8U9kecRCGpuTzBk= 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=iIcV5vKfEwmlFdquoHw29LbZbwllstUHtPWsrwznykl50okyV9lY1VVOrdrzmoJgg1 luN4xt/pJiY/solybHFa+m6uNBsl1/r17cbthL6KiBhYX2AQmYBnLQsgaXXgCywcZCnU JHSAn+5Vdi822vS3JxBGdy8IHzABGcJ3uoPyCr10lBcZv+Bo0vpeFJ4NECjzkkGX1kFR 40vbE+O1SOvH8XVOgPy7ANRuEbbys3CfWfn+zRQUom6JcS5ZmqTuyxhcsBPf/DRpU05I GXAAeT6hVJAOCNtxy/X/q6U7vCoQQyJ0P4QLNdyQDM/wnR7ZD8SGtxjWyvw6y6w9j33M JwtQ== X-Gm-Message-State: ALKqPwduqf5Dd6OOJQ8H8SzL211nvEHV5cPJNHdH+BL3KlyRC1bEwq7R WG/s7VBZ7W3iABP5esSVRf+H+Q== X-Google-Smtp-Source: AB8JxZoh7E7Aynxm4Bea6fyq9ffXiszdrf10PVyJP0OHLGOyvBRMoZULfI16PEkHszH7eL3Ox8dpUw== X-Received: by 2002:a1c:ca1a:: with SMTP id a26-v6mr1192230wmg.126.1526547657765; Thu, 17 May 2018 02:00:57 -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 y84-v6sm4123098wmg.44.2018.05.17.02.00.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 02:00:57 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Thu, 17 May 2018 09:58:44 +0100 Message-Id: <20180517085850.14276-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> References: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 2/8] slimbus: core: rearrange slim_eaddr structure X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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; /**