Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1889077rdb; Wed, 31 Jan 2024 12:12:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEysKUgzK9NfyXyYB6c2/9sAUEhiYzTSkpHsbDe9dx6GOgw/tEXnK1pZpEMoBQWD9jpotm8 X-Received: by 2002:a05:6402:14d1:b0:55d:43e0:93d9 with SMTP id f17-20020a05640214d100b0055d43e093d9mr4105838edx.20.1706731920727; Wed, 31 Jan 2024 12:12:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706731920; cv=pass; d=google.com; s=arc-20160816; b=qmJxQsN+yDmJgxuYSGDJaqfr9f50PVMjs/ELZdkFXhwO8pIhl3tAfI+YDsogJ71Hce hPDhdCus8dmTrBCc32PWcgFLfjEn3N3vh5Z2jSrn+vkorrxLv9ZfrlqQ5nM46WUtorJV dJYGaekSBoIts840z7CLF5rLZcH0gBFuP9v4hWJJR0DKNmh5iqBQwZVkzplMkRHuL4wH s9pNqUtEEki74ooQ2Dv7RKTqbMrC3tjRMKQgtQeRBdDWSOJ7dVAg4FPO41FJzEua6DxH 4fiY+rFNZfkkQ7lC/a3w2IhdALjunBqaE60xDe0MEuLrXRe6NrNrPRz1JiiVhYP6eqCQ SkdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=zbht5rbF5vwft67Ip62P/qWqh70GKmzfR9gnSCxmPkQ=; fh=Xv+Y+g56n0986qrOEBeDPi2gZnqP0p8HC8Mb+FFdJIY=; b=V5i7SizymCxxJdTdXVweSMvjtm09W2I3h3zzpBHC+JSboCnhmeTKGsnga3/dSyCx6y uh5yidAIxdeORGp+qno7ZJQSNfEJiygoOJ7B9gNIDeO0wUuHxxB+rcML77sGVxDjnN/N CAZdsgHvLTnnywlaNqFwktz2tjQlK35IOW699W0qCw3dHVkBu2lucW5CCUBMD72mk6Fi u7yYd1+6tvibRCD/HYALNrSOUCi4ycg4RCP1Wb9hnOXjUD1nfua6KEncfwg7r9D7/hIS K6U1ivSINViADHQiAjH2GERH/zyP8zyaeU4hp3aE64oPBhv01lfILL6T1/qp88temF63 p+Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u4y/x8dc"; 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-47050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVqYAnVdLW2LeZ90DoiwE1ZUfG+hJOTC+qLzxKIlXfeUmQu2kgCFeBp7fK3J656xHDmsonFftfUXjSVslZYOqk90wbejfgS53DTBpIQzQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fg14-20020a056402548e00b0055a8ca0fc6bsi6066837edb.332.2024.01.31.12.12.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 12:12:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47050-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=@linaro.org header.s=google header.b="u4y/x8dc"; 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-47050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47050-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 427991F238CD for ; Wed, 31 Jan 2024 20:11:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EEF23FE4B; Wed, 31 Jan 2024 20:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="u4y/x8dc" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (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 199D43FE27 for ; Wed, 31 Jan 2024 20:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706731851; cv=none; b=JYlDs6eUSiaAoNnJy1g5Zvuup885FxoQdycbSiF3xzNDt4X8ccaEfX7zEoXhC+B6QxsugQXIVOKG+jceVq/CcMTXmcRq+Gkld9RpQVLZ5a3fd7P9xk8kaICZLz49+QMBdf7yt5s+sTkz8XJZbTT9pWwpDmrA4SjbmamfUesjBvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706731851; c=relaxed/simple; bh=zbht5rbF5vwft67Ip62P/qWqh70GKmzfR9gnSCxmPkQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KmHNo4mG1sqSco90Lzn7dY7jjoNwfTHH0JM2X8HqehiQ8IDa6e3XsR3g0Na0sRpepZTfYE5l0qOTxqFzsdHpckn0lYVoszyMD+WvZcnZwbvPpenUomPt1Ys3HO5jBeGU60u5ydLFW5daoAolOnZKTDJDuAC4qjsxYDJE8zbLttc= 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=u4y/x8dc; arc=none smtp.client-ip=209.85.128.173 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-yw1-f173.google.com with SMTP id 00721157ae682-60406f4e1d0so1661387b3.1 for ; Wed, 31 Jan 2024 12:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706731849; x=1707336649; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zbht5rbF5vwft67Ip62P/qWqh70GKmzfR9gnSCxmPkQ=; b=u4y/x8dcGgROzaYLzS/8/AxiNOWmu4xkUI7NombK4f6U2jRDzQxQGNQeYC/jcVmrB0 vYoeGcfKlKGc3lq9WBZBx3O55EU+RiPpj9P1NRobuZVxL5N8McvPicI3tcMZ9gLGMhvQ CDob0BQwXfw+D0kRBGOr9GGpU6+SPMfo3rhi2aoCicHkVANFUJ13bz8sqANyovcxNnY0 cGqoHr/+WiwQedi20Ryp0xby2ZIxSTipjSoYJe5GsUK5avhcwYZKBJrGqhaxzT5HK5ug 9xZF4T5lokf/B2G053ptpzfDg4+1zwiGd19iwsGjWm6FtdjObVt6reAZinTyZy5DjVGC KAjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706731849; x=1707336649; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zbht5rbF5vwft67Ip62P/qWqh70GKmzfR9gnSCxmPkQ=; b=hX+PNMEKqKae9auyu5rU0XTFfeiLyg7sBNprzFlldNAIma2wD9UiL9m3Hts87mI564 H6jiwgbbnoCZgZfukthtHhi4UXBkgCRh0hGh+ZwMXbs/tm8PhyQkQnEdVsf408+UyPtI OwCxmkcDJvfCxj4gKpkUyWoA6yrQxF9Uhw6GxarQRc1089Vw3aKfAeYLj+Xqoln5pnD8 +WU4G8iAcb0cydBr5RFNUa6ohClibtesxNlFM2l0Psn17WsLY9P6iGwBGN+nCJ1Ri8Xy 7zCinKeoCYbXYuWZQ5aPagrA/428NOt+qvcPgIKkC6bKHx0FG84bWyHhmVfzsulcEr44 Lb/A== X-Gm-Message-State: AOJu0YyZfMsXE7hcHKH7YH9VFLIcp2sH/FmJwfZ9xpZBGo2TpE+V+dEn Q/aw+r+Yv5DakwhKx5P1nFvVuV8vNzXAFFQuH3z36z6p7bWx4BCOMgWFXoLOMoZCCwR66CZWvgI r3MYx4IDbZ6G0lvGNtAj58GB3bDeBlFbj2Gkz3w== X-Received: by 2002:a0d:ea4d:0:b0:604:666:4232 with SMTP id t74-20020a0dea4d000000b0060406664232mr103933ywe.16.1706731849106; Wed, 31 Jan 2024 12:10:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130124828.14678-1-brgl@bgdev.pl> <20240130124828.14678-15-brgl@bgdev.pl> In-Reply-To: <20240130124828.14678-15-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 31 Jan 2024 21:10:38 +0100 Message-ID: Subject: Re: [PATCH 14/22] gpio: cdev: replace gpiochip_get_desc() with gpio_device_get_desc() To: Bartosz Golaszewski Cc: Kent Gibson , Alex Elder , Geert Uytterhoeven , "Paul E . McKenney" , Andy Shevchenko , Wolfram Sang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 1:48=E2=80=AFPM Bartosz Golaszewski = wrote: > From: Bartosz Golaszewski > > gpio_device_get_desc() is the safer alternative to gpiochip_get_desc(). > As we don't really need to dereference the chip pointer to retrieve the > descriptors in character device code, let's use it. > > Signed-off-by: Bartosz Golaszewski Excellent. Reviewed-by: Linus Walleij Yours, Linus Walleij