Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp639486pxu; Fri, 4 Dec 2020 11:39:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzE79ke7zhevqVi3TdvPb01w/PMqcQZ6S00twMKcLMEjXY8gVgtH0HMAktXmvFWbESshrFE X-Received: by 2002:a17:906:17d0:: with SMTP id u16mr8514345eje.452.1607110747655; Fri, 04 Dec 2020 11:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607110747; cv=none; d=google.com; s=arc-20160816; b=SrH1p51JFxxv8xLXSSfimZaa95+MpE1hG+B+PKMZqLIvuZkxZI5DIZTttFjSbHK16y wikQ6gacoBDTbXNp7eaqfE2aYjcgYsfhPQSRpuhoTTWDvBqvuHdHKkJpWiJkx8hLjFAw SZqw9nvXR/9yThydR+ngLA9J5Q40mITEtp5HyyXBGcB5CjUP9YQ85nrXZMvA8+vJ60qh fpYFi6BNqeU4mQ3rJvPHWk0AJM/tpwqjka33mJ5g4VpH524Uj9/ayPU/3YoKSQFhVXjz ao7da7hsGVWDogT8lAjXvzzk3pG401lCrmNBjGTmQHbyWiraHW3dwg32kgYm3sWF6I3i ocKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OLsx5vVuUCPRsEhZl6FaNYVhvrSnAx3P4TPwOM+YKjI=; b=wqN0e8R+Xa62qWhKwhjyRGrKwm7G7igDRi/X/+/8vEpJkU/U+6J3rFqlrijw39b/Jv c/1w2D8z+zAM0Mz94bMIQXrkDl71jXWdm6FnODau5WYySTWdyD2jGPer0YURwXnkTcFv Xdz7wZ2042rdU2fk33S3prSjndkxCA7gnR422+r64KC7UXbmz2KhcTr5jk+9vJh7EnpP PymnORRx4WmXJ5OsQq85Eh2nLyZzse1BXRWJWH8R45N+Kaa12n+syVb10Kbl6zXrKImo 4yNXltRNfkOZUfKIQAK9I1lYcmiI3+xqW44D2fFn1V3IpPREQo/qWImx2bmntVIje2wa 8XPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EIj5KpgF; 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 p62si3389138edd.213.2020.12.04.11.38.45; Fri, 04 Dec 2020 11:39:07 -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=EIj5KpgF; 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 S1730652AbgLDThE (ORCPT + 99 others); Fri, 4 Dec 2020 14:37:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbgLDThD (ORCPT ); Fri, 4 Dec 2020 14:37:03 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3CBC061A56 for ; Fri, 4 Dec 2020 11:35:45 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id x15so3699960pll.2 for ; Fri, 04 Dec 2020 11:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OLsx5vVuUCPRsEhZl6FaNYVhvrSnAx3P4TPwOM+YKjI=; b=EIj5KpgF9tseDgO+Vv6rRaCFuZLSRi9JZbJm4JZSurBPJ+8A2N9qHkTQ9q2eNsk8uo i2fm+pGhYslCHJoEqkv2Km4XZFq095EU+0QlmnLYOi5CDRXxecQ1WeHnFDX/Mb5MR2hS abrArIEdHM3VcxdsG8L3q/i8V8HFEGxMHWZO4= 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:mime-version:content-transfer-encoding; bh=OLsx5vVuUCPRsEhZl6FaNYVhvrSnAx3P4TPwOM+YKjI=; b=Yc7TWmitJo+fO7ugx7bigVyWkOE5WVfwVjWK8+J9PTt1vMr1BqSBihfccxzb1drQBX oK52gld4/KUv3daK1ou59UEGAOPkHpR/kDW3iSVD3Semsq2U2P+XgrHcNxz/H46p0raw DX/cuYWVOp/G6gUbZbNrl4X8Cx/d7wYW9vpf3XpakF2lascerOgZde65NdYgH4GhRn5n UMOxf3FKtghX9hPLgMYZmMryUMT4/tGqvi2OTeH7koyNcIbtO+NKchL9K62C13Pu9dfu Ftv1rdg+LIlSi6ITorNjHMAM/aaUXxFztgKXyNlypWRjYsafmLbsQGojpeBCypFujn3B MBzA== X-Gm-Message-State: AOAM531bwSWFal0VH2LzaRMbb6dVOuf+ynPZeVu//br7G3/2l9V4zBLo lE4FwW3pMJYFuhWnvM9JAWuj5Q== X-Received: by 2002:a17:90b:2285:: with SMTP id kx5mr5596316pjb.104.1607110545594; Fri, 04 Dec 2020 11:35:45 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id g8sm4576548pgn.47.2020.12.04.11.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 11:35:45 -0800 (PST) From: Stephen Boyd To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Benson Leung , linux-arm-msm@vger.kernel.org, Enric Balletbo i Serra , Simon Glass , Gwendal Grignou , Douglas Anderson , Alexandru M Stan Subject: [PATCH 2/3] platform/chrome: cros_ec_spi: Drop bits_per_word assignment Date: Fri, 4 Dec 2020 11:35:39 -0800 Message-Id: <20201204193540.3047030-3-swboyd@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog In-Reply-To: <20201204193540.3047030-1-swboyd@chromium.org> References: <20201204193540.3047030-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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