Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4117811pxu; Wed, 9 Dec 2020 08:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXAwzt1e972DlceHiq6791MuJMXxRelqGUIDQkCJQJJIn2YILIwTl/JXXrBRasrrZPmI56 X-Received: by 2002:a17:906:52d9:: with SMTP id w25mr2728511ejn.504.1607532415550; Wed, 09 Dec 2020 08:46:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607532415; cv=none; d=google.com; s=arc-20160816; b=idWYL2rdBnvAVp7LffLaTxO4BOk/vRmJMfdVC1BZEFQFEP5VC/NQAK4RmUO6fH7Zgr WlSTGvuAW5SNft4UyumebgZJ4a9FHlECrwZVhdDkShBw9SUgc2f8GaXdVdvPZ7zekTl+ S536AOewzddtB3CZeG8jMjVtw3Kr7YRGhG6DukJlRkitTbexUvXezz0Eo0HO7XlV1OiC DLaZrS0MsfO9mn/pE18B4D1cxBcBxKzc80PvGbQHtdcOSKUsGefinIgC4xTqCc1YW2Gm IlrNjWjejBh5vSIwhhWOQDHQOAHS+rJ6lwBGGp713JPNda3q5+XmF6DW0648xmmfe8mU S8zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZtyuRdRz8sBuacydQZ1U8sV8ePK6VljMJ9YQuTchpwE=; b=XGW0icWFHO4njmMsKk5c9PHq6BB8W1Pr2l1d9R7o+Faub8xnttb8jdTnydS7ey3pjP Wh0NMFg7PM5mwGeS8Y9SSXTP+QW2jR5EPkXYUFMIIMy+/DbEc4soRNseV54lLeOcgdDd +S3ZIeLBqBguiUo55tcJUaqX13wZv/z4nzVUjG61Zmd/Y4pMMFHMmpIEOFf9eHtNAnAP TULC32MulpGzHHKVP9h+8AJmiNlW8MlkY1hkESySi9hlsViFjSUJUj/NoO7q6yuD+iqZ z+PRd3yZv3dYJ2KIppcVq0Wc6jKZ3/sqK5m9NXz2UXD/dE2CspOcPJ6SxXgoZX0Z9jvb UUww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SGRrDcXx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc2si1014802ejb.569.2020.12.09.08.46.32; Wed, 09 Dec 2020 08:46:55 -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; dkim=pass header.i=@chromium.org header.s=google header.b=SGRrDcXx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732122AbgLIQmP (ORCPT + 99 others); Wed, 9 Dec 2020 11:42:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732118AbgLIQl7 (ORCPT ); Wed, 9 Dec 2020 11:41:59 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A100C0613D6 for ; Wed, 9 Dec 2020 08:41:19 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id t16so2459191wra.3 for ; Wed, 09 Dec 2020 08:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZtyuRdRz8sBuacydQZ1U8sV8ePK6VljMJ9YQuTchpwE=; b=SGRrDcXx7kpNQT8MctEfTnNV6tsVPXc+l1wPopGzlWU4Bryx5Upueed8qDVEzdrVs8 GUP3ovO4MBPcAd81XrTibO5WDjJMDmALAps7mLG2kRr/coRbR7IDRt6qbOcXvaN1VCtH j22C1KQ1P8v5mmfS7Wt6KQ/FNoZ6QsUZ8zcrA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZtyuRdRz8sBuacydQZ1U8sV8ePK6VljMJ9YQuTchpwE=; b=oamuMi58Tn+In3BghyfpR0dYyAJd+Za32oVGj/wSSyrFBooPuNtao1avhARncPamHD 4BprzLopFEngXKuDGm4KnT12L1hnU+uK81MyDUWGVSLsRKTmvG0uCIod5sx3F2qgw+be yBQLGzDqYjQJ5vA4YRtl8LRzzhgt42nKqPWVH4nvkeWs6cUnVCWsTs5aOjxPPfc3jxrQ 1tjHok/H/sTPUEKrj/ALmrTJDUFvNjYX6QSeUIZjdBjdW+gycruf8Ysk3sVHnSIdTBu9 K3qpwN0od3PSvIlJV2gCYNKUAGgfOYqgir0Fv12R+M0ilfyo6M4ipiILiOCkHuHcs2xo fYNw== X-Gm-Message-State: AOAM530LM94ZdJiGKKwjaXeMLQGlib9kZWbMRw/EZOzzS/jcueF+pk2s ePayaCcNtPYyAgy5QSF/fXE6f7UB/WfMIUjdqz1h1A== X-Received: by 2002:a5d:5146:: with SMTP id u6mr3839567wrt.66.1607532077897; Wed, 09 Dec 2020 08:41:17 -0800 (PST) MIME-Version: 1.0 References: <20201204193540.3047030-1-swboyd@chromium.org> <20201204193540.3047030-3-swboyd@chromium.org> In-Reply-To: <20201204193540.3047030-3-swboyd@chromium.org> From: Simon Glass Date: Wed, 9 Dec 2020 09:41:06 -0700 Message-ID: Subject: Re: [PATCH 2/3] platform/chrome: cros_ec_spi: Drop bits_per_word assignment To: Stephen Boyd Cc: Mark Brown , lk , linux-spi@vger.kernel.org, Benson Leung , linux-arm-msm@vger.kernel.org, Enric Balletbo i Serra , Gwendal Grignou , Douglas Anderson , Alexandru M Stan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Dec 2020 at 12:35, 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 > Reviewed-by: Douglas Anderson > Tested-by: Douglas Anderson > Acked-by: Enric Balletbo i Serra > Cc: Alexandru M Stan > Signed-off-by: Stephen Boyd > --- > drivers/platform/chrome/cros_ec_spi.c | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass > > 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) > -- > https://chromeos.dev >