Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1611633rdb; Thu, 25 Jan 2024 00:16:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlfsIKiyhXYYzeDFHKKLofXY9w7SYaQWRkoHkM+F/BrNg5u5VPxY/cxxs10mlA3xxbvdLD X-Received: by 2002:a17:906:ae49:b0:a2d:77a:1cc3 with SMTP id lf9-20020a170906ae4900b00a2d077a1cc3mr154761ejb.220.1706170613437; Thu, 25 Jan 2024 00:16:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706170613; cv=pass; d=google.com; s=arc-20160816; b=S2tC096LA1RbBGuuXYL7Ks3Y+gexd4lVqTA8BFopTcldefjmIh8ejsnX7OQpXvM8FL tZDeouEFdiFRTcsI1Qxwb2bz179eR9llLmj0yJZM7Lo+PTwpzVNYGVd75JAHLponU7RO MjH3dYiI6ygqnqzKxlKhIuEGc2j1vp0B7EiH9f94vi3nQ9/lFDYf+tbeeMRoHNmnajvE Uq+qj06n5yHyQQ3xMGGjKdpKloS5dwHmuXmhGE+KV5gPmMHyrW5GLzVUeC3KEBWu/R1s UAmI5KCuPcIdMkkYwSmi9ZfYJfMK6ybBkVpTHB1nfbEsOBXqRgY+0KwxR3zbcEwwcJNx MoYg== 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:cc:to :from:dkim-signature; bh=VMWJsQKBSlZi8pCKLBY5EvRH/GHYaBZd2IsEfoSOud8=; fh=2sNyQIvCWYsUPaifphPoU31lHEE3CXYFJJlGvbzZrfM=; b=dFjRkx7YKzg5i4H9WPvSCEljhfzgJ/qTVOLELR78NlXehYsEYpWXfIqbBcZpVGXevB Q3sF+WdUdK7/HtgmSiYExxqnWkzjqlwPSHWm5ttEQUGi7XooDqCytsWn2esmRUPHoOK5 TxJT8hgWxHJ1g0fBgkfrlEZaqv1ihm/oIfgCGEgwYHcN725cQUiCAAiPzc3AO9nV4O16 6by5hOR/w9/rMrlkQvfOweIGmdrQFHb3iDqs+hgojf9EBvH5NwcuLKRCpheMFo9b30MG 0g3U4jFOcJ6VRiyE3hbxyGOmjUMScc/sqNN7xWi9HzgLfgynOtagx7zEwlbabxqZMKqs qQCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T4C8+O7R; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o8-20020a17090637c800b00a31044e826fsi728828ejc.98.2024.01.25.00.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:16:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38148-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=@linaro.org header.s=google header.b=T4C8+O7R; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38148-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 284171F23CD9 for ; Thu, 25 Jan 2024 08:16:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81658175A5; Thu, 25 Jan 2024 08:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T4C8+O7R" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06F3F179BE for ; Thu, 25 Jan 2024 08:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170568; cv=none; b=tXVH76hVVvlAIWdDyMf6AxZ7hIHwlYG4Y0THwVEFkiwmz00L8PqWAyaTgvB7GgkWsGylIG/H1OPtwBuMNxZ9fQmzmb11bghmpzO7xMRsmOE2ftDxxv3tS32XSOWALgoUZvPUlqmHPBsQiF9ZAnZf2mZOPdxU2iVUEbva8lyHlyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170568; c=relaxed/simple; bh=/wTQRLlgn+pDWkE/ztwTjnWGbogoKDM8d6qhGORGwR0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qLMTw22mACxQluF8JhshwN4vxOavMnXoAzreo2I/cJEtM9VrqIEKI4HgvWEMPKe/QzYHr6+bNeZGxY/kh8N6CLWis54Tz6v8kksEm3YIMVooudh7SDMAf3YMVNq4h7nVSM+3P35O+SUSd6VFypitoUScdbChAtQf89ErZvYm1L4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T4C8+O7R; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55a684acf92so7288891a12.0 for ; Thu, 25 Jan 2024 00:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706170565; x=1706775365; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VMWJsQKBSlZi8pCKLBY5EvRH/GHYaBZd2IsEfoSOud8=; b=T4C8+O7RIWKOO6839HSz0Emp+Y4W/GQcE68NIAA0z3f2/M2SqFVDjzr6K5G4ffa93m Dg86t1FPu1cKwA373tMEfz8U5Vloi9zZYvqBlHhkcCvfhtwhdWwHWu2I+rM3vNaPhdeh VhOmpFoMTL3goKvM+PlHfj/32x4psOUNzcx3uSaPd22Wgw9o/2OA2YOJIJSQuSyGRDdP +4GJHzZZK/Fcbz8Z0Tabtt416c8EysvQ4h6ifysz25hHk1fqau2UJ/cQ/ItrVFXybOUZ rqHk8r15cbzAOrysBloE/OB+Gp8+PjD9Qtfgy6zdCWEmGS1rBWJiddPR2pqAEFz0Cfqj ZAuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706170565; x=1706775365; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VMWJsQKBSlZi8pCKLBY5EvRH/GHYaBZd2IsEfoSOud8=; b=lkSA/rzVGoMTwkO+51P5Ypfs5PUOH4S/8kRDm+w9gCmeC4+dZLum7ojLq0QKuIQkWW bJTtnCTPDGHQd1y+jePORzVJIcuYRzx7Unqp0GXEkbrlESTvSIdH83EEWtfMk6yE5ZzW WEZ3MzMsqjDZuSpGKoHs//0SY4Gizg4vyvrSiaOFOTVpApgWAsStLYkPIjQIMHXcSjgo 2iOH0pUbHEiLWMEZGay6gTWjoRM9ih8PUa9eB8m5YFhy6NHynzqlIAvSBs161B5INLCm 8MecSKY2cjt2VFtU2olO+aQECQCztMNRXsc2OFrlVwNkrzhkx3lo1hMPS3dx9DB3cmg+ Ci/Q== X-Gm-Message-State: AOJu0Yyhi5rCmCO+TxTu03MH4ysN6xoXt8oZUqBpq0oK8UgkioHytBql GqsPScP12bB4nOPx0th90Hhuu1pKLRN1yrh3lmx6Cx40ORuYoW0laKugsiOdSTdew6xp8yO2q17 L X-Received: by 2002:a05:6402:5169:b0:55c:ff50:e2c6 with SMTP id d9-20020a056402516900b0055cff50e2c6mr154062ede.60.1706170565208; Thu, 25 Jan 2024 00:16:05 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id f21-20020a056402195500b0055c63205052sm3410210edz.37.2024.01.25.00.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:16:04 -0800 (PST) From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Peter Rosin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , stable@vger.kernel.org, Philipp Zabel Subject: [PATCH 1/3] gpiolib: add gpiod_to_gpio_device() stub for !GPIOLIB Date: Thu, 25 Jan 2024 09:15:59 +0100 Message-Id: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add empty stub of gpiod_to_gpio_device() when GPIOLIB is not enabled. Cc: Fixes: 370232d096e3 ("gpiolib: provide gpiod_to_gpio_device()") Signed-off-by: Krzysztof Kozlowski --- Cc: Philipp Zabel --- include/linux/gpio/driver.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 9a5c6c76e653..012797e7106d 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -819,6 +819,12 @@ static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) return ERR_PTR(-ENODEV); } +static inline struct gpio_device *gpiod_to_gpio_device(struct gpio_desc *desc) +{ + WARN_ON(1); + return ERR_PTR(-ENODEV); +} + static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset) { -- 2.34.1