Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8586940ybl; Thu, 16 Jan 2020 20:16:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyjEiZI0689Xoh8oN+YxyANi5p0m/nC/hX6c7fC3/rodMlvBvpoy3C0/q1pgaaFCgJURLjh X-Received: by 2002:a54:4f14:: with SMTP id e20mr1986579oiy.84.1579234605911; Thu, 16 Jan 2020 20:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579234605; cv=none; d=google.com; s=arc-20160816; b=dL1KXVTdqpffiu+Bg861a6i3beb5AM4wfUQ8so44I29N86XYJX+C7gHAoEQ6Dh7FeV kpwoSvfEzhxtPLwdNeURTw9SE8b267l4MJfegSNbVzMWItRs7FAgvTbhdrGSkEovS64W bEDmiQAe7FxdwobfJlpm3uqIb9MttH4nhznLj/Irt5jFxQhJfwLbRDDbxEG52q6emnPY d/VDj8LoEFfHbnYflWf5TU2K/2njRNkodlaDFnIQswZG1AyRH+tDk+daPWg40TUEdvG2 RP5yOZNpHuYIx9H26Ac+vk7XW1zyad5Qh0GdoUnbhpWtz/+kzeDSFnY/oHcDmqePZrMn cyRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=k4uCumWD7WfnmJ2v+54Fb302dBBWVzUezBk2U9Nm/Vw=; b=X4T+0HoVM9PUzDtaFxy/uUEWpKzo/CiaKWY8wFJp4TLjTdUdk0qGvoyRHL5w/MN/QF uu/H6sMpA+Vq1DNxyybzN9kxXVzDE+PIKxNi5/gaOJZh/7TaOjsoxU93ZWlhbanQypWI 7cGwG3AT+7LLPC274pHEXAKIx9JIsg/lJXu7vTAre9UlkThgLsvF+tzJdmjkVaG5bt21 P57FgjMdhs/kqaOOlmRAeBMTvB4/PxfjB20BuuKMPA79CU7K+a4i3ara7VAScV5CUZPu AYDF2+VHKcFry4oL/cvkuCSUKM2KUtqb1n3B6B2zMZnrrg4TDyw9WNmE1BZ5mOE9PENr avwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si14702023otf.246.2020.01.16.20.16.33; Thu, 16 Jan 2020 20:16:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728905AbgAQDxV (ORCPT + 99 others); Thu, 16 Jan 2020 22:53:21 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:38771 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbgAQDxV (ORCPT ); Thu, 16 Jan 2020 22:53:21 -0500 Received: by mail-pj1-f67.google.com with SMTP id l35so2665130pje.3; Thu, 16 Jan 2020 19:53:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=k4uCumWD7WfnmJ2v+54Fb302dBBWVzUezBk2U9Nm/Vw=; b=Zi5lZQMJ/2L0NJxrbALN3C7fDSIY1ezHOwZt9GI1tpz9qKToxeXuX6h4c4YwtZkyVo BBMdhjLpKDBoKBcMzb53NdX2hE7OPLUVXMnP/qmbSq7SHQZSxtUwcZupNqtTolv1YQIX mRPumgRQNO1c98rFvefrMMP6REUS8a9yLAyB9FFIvkjG1i+mFQo+frRZeQWctYHvPJ4b Kb2a6Br+SSAIG/7yOX126ahGU/+zYsFwmCyRyLhW4ZqRqiTyZi9XdW4zsSMaV6xIO3hk C3EJniNniVe9+h+7t/Z/zDcG57jt/JeoOEW/XnQC5SfCWggtjshOIz7kSehKztu1m6ie e1pA== X-Gm-Message-State: APjAAAWvxiXZj41ZixpXiPi5A7rEanmpqaBzReOod7b4gbA9YOtzEnF3 VViJnS3mSo81nRZKNVCAetJyJ2IRdZs= X-Received: by 2002:a17:90a:1697:: with SMTP id o23mr3332590pja.62.1579233200212; Thu, 16 Jan 2020 19:53:20 -0800 (PST) Received: from ?IPv6:2601:647:4000:d7:8dfb:7edd:e01b:b201? ([2601:647:4000:d7:8dfb:7edd:e01b:b201]) by smtp.gmail.com with ESMTPSA id f30sm25431529pga.20.2020.01.16.19.53.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jan 2020 19:53:19 -0800 (PST) Subject: Re: [PATCH v2 2/9] scsi: ufs: Delete struct ufs_dev_desc To: Bean Huo , alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200116215914.16015-1-huobean@gmail.com> <20200116215914.16015-3-huobean@gmail.com> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliW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998alUfn5XU0RQDYdwp6/kMEXMdmT oH0F0xB3SQ8WVSXA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Thu, 16 Jan 2020 19:53:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200116215914.16015-3-huobean@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-01-16 13:59, Bean Huo wrote: > struct ufs_dev_fix { > - struct ufs_dev_desc card; > + u16 wmanufacturerid; > + u8 *model; > unsigned int quirk; > }; > > -#define END_FIX { { 0 }, 0 } > +#define END_FIX { 0 } A minor comment: please use { } instead of { 0 }. > /* add specific device quirk */ > #define UFS_FIX(_vendor, _model, _quirk) { \ > - .card.wmanufacturerid = (_vendor),\ > - .card.model = (_model), \ > + .wmanufacturerid = (_vendor),\ > + .model = (_model), \ > .quirk = (_quirk), \ > } Is this macro useful? Does it improve readability of the code? If not, how about removing it (maybe later)? Anyway: Reviewed-by: Bart Van Assche