From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 65DA0381B1F; Tue, 2 Jun 2026 22:03:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780437783; cv=none; b=QvOsVhg/qnYJSbEguVf0LqyC42eLtG0HLFGPBHdmRoImRw2wHAqY5nFTZ0QnNxYzdm10MSxiofPYUIC8ulumvvglebi5LH/Be0lzejzA7hIIBgNlPBNElH5iVtenoj6i2ESQwskFpPTBtGkRWesVilf0NNLS6lXPfPGhwnBMHo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780437783; c=relaxed/simple; bh=5Eu+KLYLa0nbb+xrRIQGmpnkV2DnY5IS9nq+/lttbRQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tVWvIu4AZTOp4gvaerh+5bfBo9okeEnRunojPtBY0E7+jELU5LP8bz83gjy4fIusfnGSIu1yq6xNCLfSRqoapVGqeRYvAehIWhNNO4quX7bddy7EOMUZFfDAUjiVYj4QHxxtiCY+32yfyH3/NhNAQOhzZg+oQ3dMljMY55guy4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=EV6+790M; arc=none smtp.client-ip=192.198.163.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=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EV6+790M" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780437783; x=1811973783; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5Eu+KLYLa0nbb+xrRIQGmpnkV2DnY5IS9nq+/lttbRQ=; b=EV6+790MeN4WaFYVrRxBSkKmE267lV8ZtuamkLPK607eyRiP8NxfrVPs y5yIVOxV/XfGKeZrYejaQqPexijlZou10fb5rOE16H29RSWCpkNvC5GTK xFaOXzZDAuZbZdkH80j0sZErIsfoNiCukvIGzI8b3mvQLkUcARYBlW1eE e6QC38h+LxDIvShrKMBXVogdMTDEXoURKmmgUHrS6s6C2FqxMagjr95ni 1f0TX9MQsgkaHA9uDau4Plx+UvMNjnOopTNmY+WgP7BJQh8nn3MWLQREZ VVULSXWleo/UReMvoQLGUMBeaTPnOtAw5Qls3hgwXmyPmpB/TS2N5LneW Q==; X-CSE-ConnectionGUID: qoVrKFHXSlqYzYGs3N9cVA== X-CSE-MsgGUID: 2fZ3HYOfRLWC0PBeqLUtJg== X-IronPort-AV: E=McAfee;i="6800,10657,11805"; a="68778024" X-IronPort-AV: E=Sophos;i="6.24,183,1774335600"; d="scan'208";a="68778024" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2026 15:03:02 -0700 X-CSE-ConnectionGUID: YjSbJmO7SdqHodQ3uxUwsQ== X-CSE-MsgGUID: lnBU+o19RgmQlsdItY2dVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,183,1774335600"; d="scan'208";a="237674514" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.244.116]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2026 15:02:59 -0700 Date: Wed, 3 Jun 2026 01:02:56 +0300 From: Andy Shevchenko To: Dmitry Torokhov Cc: Rich Felker , John Paul Adrian Glaubitz , Yoshinori Sato , Geert Uytterhoeven , Linus Walleij , Bartosz Golaszewski , Arnd Bergmann , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v2 3/5] sh: mach-rsk: rsk7203: use static device properties for LEDs and GPIO buttons Message-ID: References: <20260520-rsk7203-properties-v2-0-465f3308021b@gmail.com> <20260520-rsk7203-properties-v2-3-465f3308021b@gmail.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260520-rsk7203-properties-v2-3-465f3308021b@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, May 20, 2026 at 10:13:19PM -0700, Dmitry Torokhov wrote: > Convert the board to use static device properties instead of platform > data to describe LEDs and GPIO-connected buttons on the board, so > that support for platform data can be removed from gpio-keys and other > drivers, unifying their behavior. ... > + for (i = 0; i < ARRAY_SIZE(rsk7203_devices); i++) { for (unsigned int i = 0; i < ARRAY_SIZE(rsk7203_devices); i++) { ...and drop the above definition of i. > + pd = platform_device_register_full(&rsk7203_devices[i]); > + error = PTR_ERR_OR_ZERO(pd); > + if (error) { > + pr_err("failed to create platform device %s: %d\n", > + rsk7203_devices[i].name, error); > + return error; > + } > + } -- With Best Regards, Andy Shevchenko