Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp218973pxu; Fri, 4 Dec 2020 01:18:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJye2ig0Hqnc6HxpPMsUzVndxGdzZyOwxzOtd2TMP1inNgciZO5t0NZpEtGxoIli7Bnb0qk8 X-Received: by 2002:a17:906:cecd:: with SMTP id si13mr4075924ejb.441.1607073505682; Fri, 04 Dec 2020 01:18:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607073505; cv=none; d=google.com; s=arc-20160816; b=Oaorfaq/dXmxLGjn3/9ZoCPoeX0QglLNw18/QbpRmxXB3tNoKwS4eruXT0LxB5leIT hQn6g2VZJp9DzVWsFz0U4NAfrllmsf0/HtYclaDe19XR7RH/8RQ7T4fu/KgDAf4bp+c0 +2FzuRKB2nBLY0Re7ymQbBCIPGEo09E8jL+Pw+8BJNsuvQhHeZT4Wq8YgI/oYgQBzEk6 6zjpEJ4ano1xzx5dw8Xco9r7vGr9SV5d0sV9RiS6HtwpRd6uxahm/93zeJMsgu9C5oxt RkCXbbblRQkToARLtsXKcHoKvedXSKPjbxl9eriIbltHIFRKcclf88xGnChn7cCA7eND uTRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=7cmQCh0qYMuZo8JqXCgC1RLrsY45+koq4FlPurD+1Ac=; b=vaKgYwmyejSRfRh+eM0rQ+2KxT+iJz4NZE2whzQ5zlBm+Oq1p9vVBJj4x9MKUCA6x4 Co3pGazQjDqDQuCt99BPNHvHv4ivvR5xJSD6xZ600zsd0XrzdW5cYXJ/+A75QeUgMW4c nbhzH678ELlqXH2tnVh7VRW9ea1LJmy5vkmmmRt6bWStkAODQkxXzztLHDB0Fra+t6qM u3wzv/AlSIZl7oGRPpGEPOmtHqUSdf2V6yVn3Q53ycjQj1iBIBUcGjg67WVrdr70rZCH FOQkwXta0vd2+6AN0D+cXae8xorpCRcnKWUxBeh+OnJ3ZW/3pzbFoMPARFqY4dc15jdi L14Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si961830eja.49.2020.12.04.01.18.03; Fri, 04 Dec 2020 01:18:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729476AbgLDJQc (ORCPT + 99 others); Fri, 4 Dec 2020 04:16:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgLDJQc (ORCPT ); Fri, 4 Dec 2020 04:16:32 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D5BC061A51 for ; Fri, 4 Dec 2020 01:15:51 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 8C8261F45EC2 Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_spi: Drop bits_per_word assignment To: Stephen Boyd , Benson Leung Cc: linux-kernel@vger.kernel.org, Simon Glass , Gwendal Grignou , Douglas Anderson , Alexandru M Stan References: <20201203011649.1405292-1-swboyd@chromium.org> <20201203011649.1405292-3-swboyd@chromium.org> From: Enric Balletbo i Serra Message-ID: Date: Fri, 4 Dec 2020 10:15:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201203011649.1405292-3-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Thank you for your patch. On 3/12/20 2:16, Stephen Boyd wrote: > This is already handed by default in spi_setup() if the bits_per_word is > 0, so just drop it to shave off a line. > > Cc: Simon Glass > Cc: Gwendal Grignou > Cc: Douglas Anderson > Cc: Alexandru M Stan > Signed-off-by: Stephen Boyd Acked-by: Enric Balletbo i Serra > --- > drivers/platform/chrome/cros_ec_spi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/platform/chrome/cros_ec_spi.c b/drivers/platform/chrome/cros_ec_spi.c > index f9df218fc2bb..14c4046fa04d 100644 > --- a/drivers/platform/chrome/cros_ec_spi.c > +++ b/drivers/platform/chrome/cros_ec_spi.c > @@ -741,7 +741,6 @@ static int cros_ec_spi_probe(struct spi_device *spi) > struct cros_ec_spi *ec_spi; > int err; > > - spi->bits_per_word = 8; > spi->rt = true; > err = spi_setup(spi); > if (err < 0) >