Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp135233pxu; Wed, 2 Dec 2020 17:21:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlTnS5LJM4eeRZGEC7NUKR7uGVSo9JyPQRtdktu1WDYW7kxEjfvAxLPiSWe2PA3AMv8OEL X-Received: by 2002:a05:6402:491:: with SMTP id k17mr742471edv.370.1606958468859; Wed, 02 Dec 2020 17:21:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606958468; cv=none; d=google.com; s=arc-20160816; b=KvcnoKraC4ECh+wanpUqJ1VXAjx8PO1dcUOLMdUZYRFyxo9R6bZH3nPzOtIY5+h1pY V4mq5JsGiPodtzbMY9qZwRkewFsy+LAodr4du2pBlmnQkhtHMz6LKl9ZequV+S8kC7TJ TdX5H/RIJbw6LF58SvTL4jHSU8noJUJlFRx10hmL29+D0YK3kScN0rCdTyxhdzyyhOvK zGKq8I3+TIxIArjH+eI075FtfdUOuEDbWCpgBvbK544hNdYbRAatLmbGsAb4NTFAPefK v0EIjb9S4zWWmr8Frjrkfp1vQvdD+V9owZ32jmVy7N+CQ8FhbSb/pdjrD3SyQ4en1xtn YVmA== 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=BqgRVATL9EVQEmmklghH4p+JKc4J2djksQxSoW4Ye30=; b=XFqVWoausBiwVsh2LZN2jUzUpMGHx2Bgi0efx0DnmTDI+LbEBOJAq+LlE5mIhEE/Pl vPm9uvof89aNU+5ferrQAfq1rNSotsCVZtQT8o6QzN5fPKg5Kv6fguOOVXYQnyndYhiz Cm8DXsK04FOGKy08c6xCMPJA/19Gw/7A0wkV7TBc7jIzMFTCnUJyzAqwndupqAkJGLeE 3zpW3K3q3h87Ve0/jeMPDVTKO3e4q63qZP+Jo2VFEtGYUe+5di+YNAs527LmYDDD1w3Z 0VwfV5YV+y5rT4Q50H6/GN0BPY9MnmW8dNpuBBYhw50ebb3QaM119zQUDutP4eTXvjy3 qFtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IHMUQWYS; 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 o18si34397edz.265.2020.12.02.17.20.45; Wed, 02 Dec 2020 17:21:08 -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=IHMUQWYS; 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 S1729265AbgLCBRe (ORCPT + 99 others); Wed, 2 Dec 2020 20:17:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbgLCBRd (ORCPT ); Wed, 2 Dec 2020 20:17:33 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743C6C0617A7 for ; Wed, 2 Dec 2020 17:16:53 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id t8so183935pfg.8 for ; Wed, 02 Dec 2020 17:16:53 -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=BqgRVATL9EVQEmmklghH4p+JKc4J2djksQxSoW4Ye30=; b=IHMUQWYSgsFg4fZCOCdeYBTqtcZd/eIAir7cr8BA6og5RhWDVO8K1i7LgkXRvelpei +Bz1Z3yfJ1eLM3RwKE0rIBfjO0buM2hnOCg4qVn8/X2O0T9/R/uE2Bec5U7JrlkEcxYf RIu+oAn3NbSBcy3Pf5vicS6jfP67+swtzSKkQ= 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=BqgRVATL9EVQEmmklghH4p+JKc4J2djksQxSoW4Ye30=; b=K5uybvuNWS9uACRwX2sqa9RNkLpzPDEn8vqTpZJqwhMZSupq5LrD7iMKXkdY2RFDi5 oEtEdkxniLYYjYz5sG4q2Kldn7IJoWcyWQpgpGleco6zAr/lTwy5y1kyA2Tv5v//hIv2 TOdWJOambJ+4kqAxKypRpj9vuc+pO1e096O8WWj2bJwqWz2OrRw6X1Lc/p/XEthqhgYl GJxtUI9+9TD9C4ku2o/350x/W6ObqebreFlVfBRtwBfK3JlbFPPTg51hBbzlaz5bHCOz pyNA0xqlPOjkFVzc8VRt0B4dSPAWy/xP5VRPMt4gzggimhuCtYB5vGiII8RRKD/NcbQW 6HaQ== X-Gm-Message-State: AOAM532mqxBJTUTf774CXyQvX7NGg9BxIwnSwdvjg0nA7T4XWxqIrqUt +ErVlRZLrC43UNsm5xk2hYZL6Q== X-Received: by 2002:a63:e20:: with SMTP id d32mr926217pgl.94.1606958213057; Wed, 02 Dec 2020 17:16:53 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id d19sm123292pjs.0.2020.12.02.17.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 17:16:52 -0800 (PST) From: Stephen Boyd To: Benson Leung , Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Simon Glass , Gwendal Grignou , Douglas Anderson , Alexandru M Stan Subject: [PATCH 2/2] platform/chrome: cros_ec_spi: Drop bits_per_word assignment Date: Wed, 2 Dec 2020 17:16:49 -0800 Message-Id: <20201203011649.1405292-3-swboyd@chromium.org> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog In-Reply-To: <20201203011649.1405292-1-swboyd@chromium.org> References: <20201203011649.1405292-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 Cc: Douglas Anderson 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