Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp534196lqb; Wed, 17 Apr 2024 04:05:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpo0cXsZ4NB2UOPHzMpponFg8D56JovwGkOSX1T7ETauJ78BKfMjVNtP8V+qe3ThlwxuITgv7uRrD08OdtdeKwYJQjZYjCRToZEq8o1g== X-Google-Smtp-Source: AGHT+IHm1ftTnZj648GSrJfx8tAYvLCmKJ+lbsce9Xh3BUkBSMvUOSZEPsgrQHk+3R0EVuxZ/IMb X-Received: by 2002:a17:907:928b:b0:a52:57f5:776c with SMTP id bw11-20020a170907928b00b00a5257f5776cmr8442157ejc.45.1713351936828; Wed, 17 Apr 2024 04:05:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713351936; cv=pass; d=google.com; s=arc-20160816; b=cdd+hC3OQ2vN14wcv0FiGz196jsfJAoSIAF//D4TQnADzd75J1hOdeKvoceEb0hwty 0mn4GzyUxjeloiTmS/TlIEKtq8x71eXVzGIlJcqo5g/Llj6Fkb/BcLGMYI2O2mtLSfnR NQzSr9ffcxofAfYuu63jRK0RGnjytjl5/FuWF/BNqmIgFKlzaAKv9iVH0DGPxVKsRQAg 1A8M8Hn+6tSj52VbwEctLMT7k5ue7/y7h3Wg/4Q4A7DQuxqxiB2LRgoI8gNobKUzcUe3 mKFTICFcxhYbOQOvhlCqskkteOKvZj72B4SykIfzTFS6MadoQ+YgZQxXC0hro+KnAqMf gQmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=s0mCofHvL8sqcQGmzp4U5nd5vrwWrO0KB3YjayT40I4=; fh=RVhVq9N2KIH6+up/M7086jKDWt3wEC1Qe381m7uju8Q=; b=ciAhVJg72qsozt4/WiZZXuJclqmU+eWwacy4vigbYVrdv2OfGmkJUov0W5Abd3sxw/ maQTC6WG7LEiVqa9Hy//quWc16SDzRhp5Sr2XJcNyo/E9yT/f9l/0Js3qWZLcBKPzk5l 5Gf0vKBKQhfRvmTsC0ZRuEhE31VU6sJufs+AmK37/cbqdD/4IutqL23eQZDrSOl7MUhP Zp0t1vxKRwF4ctiAp2yDYlVApV4bQNzgSO+TgyglZ9p6PXsZO9LJMS/f1i3gnNtzYikd jlvdWt4kcXrawR5ypHL70T5N8m4Y+o8p9ENhEisBRuyBrtFj8OUlCPOWRzzX8j226Wur 7cMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lTSmCMF6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-148372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z8-20020a170906074800b00a5540ef3c43si1712397ejb.605.2024.04.17.04.05.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 04:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lTSmCMF6; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-148372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5EF3C1F23F2A for ; Wed, 17 Apr 2024 11:05:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B078E13C834; Wed, 17 Apr 2024 11:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lTSmCMF6" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E95E513D53B; Wed, 17 Apr 2024 11:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713351832; cv=none; b=byLMOhUh7iHFnaX4n8oeDnInhG3WQLg05S77eqRU/MBHh8cPQDBbXf5WmG8eyYcq68XJYQHjkuJo5Q33KCQXYlP44w0aXCKnTvwpVX5ec7eUlPOT/WWFI3gamZJoj2ZPuw2YdcUA72HcFiyanvL37UoM7qdB3b8qzk8Y8jNy6Q0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713351832; c=relaxed/simple; bh=9qZmuA7jLecFtZoV4feOe4GVLTIJuoKfF/zfVdw+9zo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tYJo8BOv6/LP4cDwuiGlzMv5GGLaii3wZInSJVchinoZngSRz5Y66DrMN9faLTB/la5rhZQY68uvOsVafLCuNAqFWUfQ+IQ1iM3NiQEoSuH7va9cKRg+idSJy7dwW/8OGAXAKsISraRYM8zPJM8ZE/00ulIQ3i2FqowppvkYaJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lTSmCMF6; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713351831; x=1744887831; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9qZmuA7jLecFtZoV4feOe4GVLTIJuoKfF/zfVdw+9zo=; b=lTSmCMF61ASYxaPcxACUiPJ/srReKf4FVkkuV9O/eIvuP5WrhlN55RNl HdW6WHQB3rNQCG44738bH4jK6x+VpATsfucCoUV8O1G/skAoUIeg4fQsI GYGV011a14IKoDzCJaqTL4U4ZvD/1N/fap9UwExjwyVEwXmTvD7aZ0y3f 8ASywVREDRGor0ouczqFaUlkWC6xWIeE4uVzgvPuNpmA7NgDd4HCzDp// Qi9JWVg9LUe64P4iPaE6TTATVILRrAvYKV/vdPcClkXsmGUCYEc8RCIdQ LZrRJD/y8uYFoXDHFc0xVOyTvtO3stY9zcRlWfndl1Q969//yW8lbbog6 w==; X-CSE-ConnectionGUID: /r2GSI1oQtK42qQfds5RNA== X-CSE-MsgGUID: An3vu9AmSVK074CDC406nw== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="8698172" X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="8698172" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 04:03:43 -0700 X-CSE-ConnectionGUID: 4bTWfvTES7mPrLoDdsjZqQ== X-CSE-MsgGUID: ADbg6H6IQJWW1oHVrXNl+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="22653281" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa006.fm.intel.com with ESMTP; 17 Apr 2024 04:03:41 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B7B1514F6; Wed, 17 Apr 2024 14:03:36 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Subject: [PATCH v3 8/9] spi: pxa2xx: Remove timeout field from struct chip_data Date: Wed, 17 Apr 2024 13:54:35 +0300 Message-ID: <20240417110334.2671228-9-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240417110334.2671228-1-andriy.shevchenko@linux.intel.com> References: <20240417110334.2671228-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The timeout field is used only once and assigned to a predefined constant. Replace all that by using the constant directly. Signed-off-by: Andy Shevchenko --- drivers/spi/spi-pxa2xx.c | 4 +--- drivers/spi/spi-pxa2xx.h | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 3ba0f5816f7f..030afb17e606 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1058,7 +1058,7 @@ static int pxa2xx_spi_transfer_one(struct spi_controller *controller, pxa_ssp_disable(drv_data->ssp); if (!pxa25x_ssp_comp(drv_data)) - pxa2xx_spi_write(drv_data, SSTO, chip->timeout); + pxa2xx_spi_write(drv_data, SSTO, TIMOUT_DFLT); /* First set CR1 without interrupt and service enables */ pxa2xx_spi_update(drv_data, SSCR1, change_mask, cr1); @@ -1200,8 +1200,6 @@ static int setup(struct spi_device *spi) chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); if (!chip) return -ENOMEM; - - chip->timeout = TIMOUT_DFLT; } chip->cr1 = 0; diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index 10294ef209d9..5f741bb30240 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -78,7 +78,6 @@ struct driver_data { struct chip_data { u32 cr1; u32 dds_rate; - u32 timeout; u32 threshold; u16 lpss_rx_threshold; u16 lpss_tx_threshold; -- 2.43.0.rc1.1336.g36b5255a03ac