From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A821ECD13D3 for ; Mon, 18 Sep 2023 07:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240048AbjIRH02 (ORCPT ); Mon, 18 Sep 2023 03:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240203AbjIRH0H (ORCPT ); Mon, 18 Sep 2023 03:26:07 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F2B12C; Mon, 18 Sep 2023 00:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695021961; x=1726557961; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kFJCHQ4Odn3541lWdgt/yJMzNIv3Rnoj9Tzzh8CYgOY=; b=d9Z+A5m4AA5cJdha++DurDYnHPzf9IGfg9Sd37Ii1AV+F49rqWc7GChZ bVmIC4XtmQHkvDKCgmrkDOOFwj1kBVZa+AiAMuvhXb/J1e2ixX0xoLSUW vK3iAlV32CBXLYVe2y1CwyGCuV5tZ0+w+YMC/CtVizaqbuCZjoYeVZ31N QDrTZkxkB3sHYQ9oGnI9Ej6XuFaqhgPnoCZZEoEITogQKX7D05iDo16rP TTS4Kage/5GfxJyUD6o8fXzY+Z9Ql1CpftqAaylZhWginSJGs/O2RFYON 1Z+1t1lZHtHGvJu04donT/MN3ZgJuO1lYnh97AgtrD7dbM45+mlwVxVJi g==; X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="410541866" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="410541866" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 00:26:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="1076484354" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="1076484354" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 00:25:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qi8dn-0000000EUuI-3aQJ; Mon, 18 Sep 2023 10:25:55 +0300 Date: Mon, 18 Sep 2023 10:25:55 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v3 10/11] gpio: swnode: replace gpiochip_find() with gpio_device_find_by_label() Message-ID: References: <20230915150327.81918-1-brgl@bgdev.pl> <20230915150327.81918-11-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915150327.81918-11-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Fri, Sep 15, 2023 at 05:03:25PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We're porting all users of gpiochip_find() to using gpio_device_find(). > Update the swnode GPIO code. ... > + gdev = gpio_device_find_by_label((void *)gdev_node->name); Why do you need casting here? -- With Best Regards, Andy Shevchenko