Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1162959lqo; Fri, 17 May 2024 12:43:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJi/SN6iEVnOeGsl3piQiXM8Oa1K7xjTDteV7a0uWBTEg2aGqaFaRLohjR5hn77XZB5PksKEiSxUQ3zKgBTFqaNSVBfInOjH+K1qGGCQ== X-Google-Smtp-Source: AGHT+IGu1BCbI0/YmIdO2uc7OhF6DpdKI8XxFdvzVUiUqt4qkzbLSCKUk8CQIAkYPaOfuaFF6PZO X-Received: by 2002:a05:620a:4153:b0:792:dd4c:a550 with SMTP id af79cd13be357-792dd4ca57dmr2120324485a.71.1715974981373; Fri, 17 May 2024 12:43:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715974981; cv=pass; d=google.com; s=arc-20160816; b=daFeeQfI4peE7NEUjh0Px8DOh6MAHns7Sv7kavP2Lk3D4vMO01CGCwkXK82ikgXDpp kJ9Yg5NTtGWDi/4ZJsR+jHAT5Yizvw/xRi5J+yjDiMBWrGX/rWTaeb+PThmfI7Ao6L/u fFoOHJP7fM19kti8rRbyhvmvEcVDWQRJOQjOsCCn28zEzBYcqiYWO2NRGxRxdPeGXOrK tvfS+musJ/d2i/LZzGBhbOgBWxd/eOdPWz2y8f6fRlEvS5c8Zx6vd8SRF4OhyYm1W09d QQrHWvN8WTThh5qgGeRrGPT5HEKaVOf3B+LQ89np33mue4lzn2pcouitVPlRoRXPUxrw yt5A== 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=WaH9nJvqYGyeX/HjQbmSqgIXF3rJv9pWp5Z3LOIqPHE=; fh=R8RFELwKVjrwL+P7kR7hr7w+pNRHoMSaO5S66DYdUQk=; b=DwqSPkR1J0eJNRygPuu/yWREzOmaTgoSBL3nl5ltDeJ1+qjfy9ORBKGvw49jSbLDka WvCXHxajjNVt2IT/x+FUSTf7jHpytyElLWHRAwXZDpC/l8nT4g/6RnNEr8DD+MJ3X2lr GzD1HL8w39zVM0WWmlnmOLVmT06Bmuz2ehXvZmw7mjKV7E6b8xndp7es5kaZSCjyr+K+ LhPlZ6ux+ABwUOdOvt7qPR78eDb8J7f3PmbWaM2B9BPkP64OgyDmwr7Ml7NHL6wNhnJs T7gqjrqnS02NPQS/7PU8Ht7KzKU5fq9SGf8HMKHgY0Csu3qvtzSf/kTafjSjqKQKIrYR PFKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NLhakqJg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-182578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf336b1esi1893995085a.393.2024.05.17.12.43.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 12:43:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NLhakqJg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-182578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182578-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 18D581C21C09 for ; Fri, 17 May 2024 19:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32D1D140394; Fri, 17 May 2024 19:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NLhakqJg" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 33D06140363; Fri, 17 May 2024 19:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715974971; cv=none; b=U5JbAu40f8RCcvCDOBqHckA9Rz8Zebs474G1ImLmnOB5YeyvumIVNI38pewbrE5BsodRkbM0XaN4edw0pjPkgz3YQ4Pf0ilM+v4silHzNeaj9kFXYcLy/vzrUkLzpACbEwds7Ov+ynGWmbM7MldFmYH+2aYAQjJ1eIodkZ8Q5x8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715974971; c=relaxed/simple; bh=vKKeJE84GjcL1kTEGVbp0Fdmde1mk6S+ku2UwHVtXm0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Qa8m7qLHLmGQEO8MMZ9DGdiWuSmGk5FeVkuseIsnlakAnviWsGuiExJIdrcHB5B7ViXW/huZbD0Tgj+39/xMOBRrLI6BsYYIqR8MfzerkzPRe76JGzzMWdFrmVO9HVXG6mNvrbd3fWO199FNKsV4G3rcGcQCfkOUh3VcWJTsZHI= 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=NLhakqJg; arc=none smtp.client-ip=198.175.65.16 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=1715974971; x=1747510971; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=vKKeJE84GjcL1kTEGVbp0Fdmde1mk6S+ku2UwHVtXm0=; b=NLhakqJg4fki1yGKXZNUvRvgI7ct2DwWxoGONB0S3nsvC3xLWzDSdzhE fCjyVev5cRmqs4yv/btNNAvlHBW6z9ZG5HRNq1e1oSVOgkG6SJvG9x2/q 6iD0U7dgISZnHcvE7yiIYyQFwZDGezxpy0tl3kyq6om3uMhNmN3j3E705 gKSHHhFWfXO1Syl1NomcQrXRDQiqlrASWKCI8wsxxe4plhG88gxh6MRRq xd/4C5MRjzrvEwLpe05ETn8/3Bdp6megraPj39agncktbAya5+whLkzCQ hSj390Oz/ATDviHuCuXPqHo9Anc0892/YVuIRKEnVFOcFbAg6aTqJz1Rm A==; X-CSE-ConnectionGUID: 708vMxORS8qfTW8wolVX5Q== X-CSE-MsgGUID: 4SzJwFrPQrqITeXHZm0NoA== X-IronPort-AV: E=McAfee;i="6600,9927,11075"; a="12284438" X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="12284438" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 12:42:50 -0700 X-CSE-ConnectionGUID: U3HfcRuzRt+XAIE/veAGoA== X-CSE-MsgGUID: 2bHMFqiMQc+JlFNJfBKgxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="31877128" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa008.fm.intel.com with ESMTP; 17 May 2024 12:42:49 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4BA331F1; Fri, 17 May 2024 22:42:47 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/3] spi: gpio: Convert to be used outside of OF Date: Fri, 17 May 2024 22:42:00 +0300 Message-ID: <20240517194246.747427-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 Convert the driver to be used outside of OF and a couple of cleanups. Andy Shevchenko (3): spi: gpio: Make use of device properties spi: gpio: Use traditional pattern when checking error codes spi: gpio: Make num_chipselect 8-bit in the struct spi_gpio_platform_data drivers/spi/spi-gpio.c | 66 ++++++++++++++---------------------- include/linux/spi/spi_gpio.h | 2 +- 2 files changed, 26 insertions(+), 42 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac