Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1162453lqo; Fri, 17 May 2024 12:41:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWADS6Vq98ik5g+zW2qTBBLk+nuLge1hwxbb32HRPxcyE7HJFYFfN/G4/r3fAIyP2ZEDxwElUGSKbohcgVV/4v4RSmNnyVBo8oy7vnVsQ== X-Google-Smtp-Source: AGHT+IGUJBGU9bPfrcyYNldW5KcEivqCp0uE43jbRo98M/gxgfHpi+bV6xz8pCiUJgF11B7Xu/yv X-Received: by 2002:ac2:5f83:0:b0:520:9775:5d3f with SMTP id 2adb3069b0e04-5220ff71d65mr15333374e87.7.1715974904810; Fri, 17 May 2024 12:41:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715974904; cv=pass; d=google.com; s=arc-20160816; b=eUW3fANYcJcyFK+BIhdb7pJN4PTm3rsj7EWdq+Lpmy+mAPbZxq8IW+vUbowz1aEAUc eKtaq4ikN56VhI/iP8R73ZPJJbXfOmVm59rHfHdFFoUS78q3K4F3MVhNaiPDzfnL+9D7 YntlO4xOtJU7aLVGo1ha4nuU3K41bDfwGjjvmGn61e/uGilvkha9qlACQYvBTaHZoNmh 1MFVw+CUqtvVRI4vw7V40Te/n4aaZR2wodLBQzVFBFenoPH544G8KtZwgNJn5wcqpUOk 7+bCGR63MPw/cCZ6tFK1kaX/HoVC9kkyMHSHnwz8DHK8ZIuv+E3CTWFTPIITD8dwknNe NLyQ== 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:message-id:date:subject:to:from :dkim-signature; bh=f8CVeo4WGsZ3bMgO8aCN7DKIb/SJ3SbSvCmy4BXwm80=; fh=Y0nnyUF3S0DZEUvtq0Po1YmdUBLJZKfXU4gyGw8sw3I=; b=eUoC/6y2FIIXxc6H7Ze/yWSGOXWUEVyu9r14iPHP1uRLb/R3ON4aYKg1JJo7OXdtIr RRIXBDibrlwv5ngZ4lL9qKzjpeQsz7SlscNX1O0wPjzESWmBa7b7yQXtDoSjHOGpQ0hp 81HwFQ0O/w+L30pBXMaLsgQ0K71JHcqOO1W/rl2LLUXoV2P/FxTYWI+ElbUWUPrTfody E1Q+I2JLRUV944NrsSJ1XAQIfl/cZg0ASPJTRzUk0axK7QJxYKfMzIAECdJ1Bjyb3D1j UB1bg8g+lWfqp68ZBikeGXS2c5KGLF1xaXO2380HQhSPrbL2z1kSaevOW3/xPqZPSo/Q UarA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h22LymZg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-182575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182575-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1794626bsi1095145066b.113.2024.05.17.12.41.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 12:41:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h22LymZg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-182575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182575-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 803761F23F85 for ; Fri, 17 May 2024 19:41:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF651411EA; Fri, 17 May 2024 19:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h22LymZg" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 CCFD9140383; Fri, 17 May 2024 19:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715974874; cv=none; b=ESFzYgOL+E8uk3eZWXbjIYawlqcYPfQkCLDR/VBkwPSuFv5C9noLh5N81v5gowr3FyPklYUzoC4djF72JZWqub7Ivp/j2MBAM0WQNt3aWyxnvj42M3BzXyK2SUCXWRgloVsKT68iI7Xiilz8rOpR3HwgOPx+9SXurh0ERMb98qE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715974874; c=relaxed/simple; bh=58uaCEFrJnHV69wmGixRF0cIdsQsYxGDJ6YWjcApJ/0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=TOC/RoFIE4GyklfiYDurii1+J2CFAbwrUN7D85T4Jdqo8Gi74O9A6vxVq+b+Yq5h6w1XJoK+9w32x5eW6UdPzU5AwnLUb5yvWp1SLuZtiwgIYUAGK3csi95YvReul7y1wdK3T1Pkbe60GqxSW0jgAkDC4fmlgYXqrmrwYvsKG2o= 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=h22LymZg; arc=none smtp.client-ip=192.198.163.11 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=1715974872; x=1747510872; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=58uaCEFrJnHV69wmGixRF0cIdsQsYxGDJ6YWjcApJ/0=; b=h22LymZgtJP7u8bus93/4plmaqWanoWxtOtRQY2zRS7SZEGGH7Lzkyb/ 6+UM78jyfe3ip/MrNLHO95tTorV6lZ03QHQVSFU5Q/TxGsga9C8XBDu42 MqEVM8mGDh9W4IyPRC/dxVChjl+efFHlVaWy85we3MSDZn2gmpQfpDV9T QGsAPUWiU00yiQSMpSYWt3+iqOIG/ZxBTIUajVLIVP6kRo1dUf8OG1pcD /EbmliO7ZNQUhq8VaeTOAPc709BON8nMn5cVrr5I+XvObHrg3SyHmCzAh ChurvenmtacWx9XGHH+P6op/OIlgKyd1+5a1H3W0tucIkMXjmveTtE1ds Q==; X-CSE-ConnectionGUID: v5TUh/DxTb+JV/X1zU5e+g== X-CSE-MsgGUID: 8I/9a3TPQnasaNRR1JOQHQ== X-IronPort-AV: E=McAfee;i="6600,9927,11075"; a="22783105" X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="22783105" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 12:41:10 -0700 X-CSE-ConnectionGUID: VLNn3fz2QTaa2kgiGzLsFw== X-CSE-MsgGUID: Ahz/pBqGQjKFq+kOCtvryw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="32503705" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa007.jf.intel.com with ESMTP; 17 May 2024 12:41:09 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 487421F1; Fri, 17 May 2024 22:41:07 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/3] spi: bitbang: Clean up the driver Date: Fri, 17 May 2024 22:40:19 +0300 Message-ID: <20240517194104.747328-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A few cleanups to the driver. No functional change intended. Andy Shevchenko (3): spi: bitbang: Use typedef for txrx_*() callbacks spi: bitbang: Convert unsigned to unsigned int spi: bitbang: Replace hard coded number of SPI modes drivers/spi/spi-bitbang.c | 73 ++++++++++++--------------------- include/linux/spi/spi_bitbang.h | 7 ++-- 2 files changed, 31 insertions(+), 49 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac