Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp682777lqt; Thu, 6 Jun 2024 15:37:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXh+/ijvo6MSLWwDkMvrfh1Y98mehfvv+Z7rVrJ9/yRY4yGAeu8uOGZymTLsZMGK9MA2f4uriSmLQSdkJ//2Jp/YIZamcmoQ/sw1QriDQ== X-Google-Smtp-Source: AGHT+IG2XLxtQ+7cR116TCvrodY3bU4xtMIxmh8+FqfRb7NjMjh3JvcTinkdJxAC/heJzUZwdd/U X-Received: by 2002:a17:902:8f83:b0:1f6:881b:b374 with SMTP id d9443c01a7336-1f6d0305cadmr8734945ad.38.1717713467750; Thu, 06 Jun 2024 15:37:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717713467; cv=pass; d=google.com; s=arc-20160816; b=1AuCxZ+YYvg6BLwyHVonr5N+EjXU2lsFkJ8RONS7+E/AWa3uAwhJJsTP3PtxGxfN52 wrD62+uuYE9UT61wAvmAgIfhfSwq72RanzLQiVEztuwKjMsWPVy3/AhUOarSZDSGgCKG YcA79HiKBRzmjcu34xWN9Gqti/6Wkxxt69DN72p8VZwKyssSjNN/t14SX6W9LfgojvrO ENFHY0VuTwfc0MLc5ckCpasNI732xnXLcuGi8PUtlq7J+aEfZp+eha+aU0c7VweY0zUH xVlsX5wq/Jy7Re5TDAAiHsqCgIjRqLOsYmtZN9M3qv4wMrc4vf9fVGJZtSPALjE+WcNh h4pw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EkgS/SnvEzfEyptjCb1nGAqWv9AWIh/pI6Ou++rN01A=; fh=tUAC4oQq3UuKajr6ZMoB53sspoioCuMU4y0NrDbDhac=; b=a04mlH/SJ+8jf8U4mWI/jQSTB9bZN71z4c/gRZPhqb30zjJNVuN4wrF42dEblot0qo nSC7qHaxQpQfcDLSRh18Bvp/DTZCJaJFCLFZrLjdZj1Iailzn82dFFKx3kBElj+WWhzn +UlDqhxTn9s7fOcigoTU05MRxhWOadIEbI/ZjoReglGXllO/ubOpfuq1KVcdom9NUFMW iRziXw8dl+vzeTd1inR5SARRSJFRbPDJQsLNCWFtO8yuYf6pGp1wPvrMvez9OvH5q3S8 XOF3/0ky7GRsCtRX6UNKiMJRzZEUpbzjrC4sOvHJ0QG1YFL25GUIHiAWh9YtecmFYcCy JJXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q2hEA5wh; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd81e618si18225965ad.554.2024.06.06.15.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 15:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q2hEA5wh; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204809-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BEA69B28167 for ; Thu, 6 Jun 2024 17:31:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91926199E9A; Thu, 6 Jun 2024 17:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Q2hEA5wh" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 58FE819922A; Thu, 6 Jun 2024 17:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717695047; cv=none; b=VOlXvDAKjwZYsjUU/CJ24gPSnMFUijNVczLgqnTWxW6XHBMfULWBfqeWnj6Q0cMiNozQXNHNlgSFQCuVfMgVdcB+AKPLFSDtb+46wlMFr3KHYuUvsRdXF9XzO8fCukytN9HK+kCxIKx7KuGq1XAvZgHtJr/BOhKSQmgS7tLJA3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717695047; c=relaxed/simple; bh=QBmoVRhUJZlP7PTuWcuGpKu7NTGstVCtnVRAN1E5hLQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P8XUQwIH7GGC4i6fHZPXwqfLM9VoPACjVBwyLiMZFlibJQM7UP+HxcW3KqkR/YoXocXtwaFaCsS1gNXMrbOicgf3ZKyFzULxSVuBhD0cfk923CJJGXmTLKEFeUQSjgBkJcas+YVDcrbmORObhlGRCiJRvXNnspQu9wiAsO1JQn4= 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=Q2hEA5wh; arc=none smtp.client-ip=192.198.163.19 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=1717695046; x=1749231046; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QBmoVRhUJZlP7PTuWcuGpKu7NTGstVCtnVRAN1E5hLQ=; b=Q2hEA5whgM8Wpp2zRDQFSFqBT1XNumVY6iPODNXQxaYw7hginnScI/JG FNV6OZfYzm8GDOVN9xOXmKBBrowq3yENC/inSos1N9Bq8c9CYcke6B9To /S1rzx/1dKGzj58ZVGV4hIcoh0+uejssqrzINcgGnTRL1x6L6Xo9Ab4ld VhqetqN9nP7erhBAXHAaFu/FQ75Vbxijn3+qlpwf649fBFIY/q34Em0vm QVdHdMmjOHhUCny+9I6i8D47s9YVyee/O10EMCwM2YSh0RJgWa3w7pC3l 7aNnXW586uKAndxbH2JcLXjQiEnIcHxbhmoFSNJvtF3Xu6EeGtA7Z22Bb Q==; X-CSE-ConnectionGUID: dDGHkDrJQTy/11upQFvmJg== X-CSE-MsgGUID: ZqaKf1gfSUae0nAId7grcg== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="14192013" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="14192013" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 10:30:42 -0700 X-CSE-ConnectionGUID: JD70v06MTVG8J74bIvUcIA== X-CSE-MsgGUID: jmfgeVq2T/6APnArntHyzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="38164435" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa009.fm.intel.com with ESMTP; 06 Jun 2024 10:30:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 8EE362CF; Thu, 06 Jun 2024 20:30:39 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Pavel Machek , Lee Jones Subject: [PATCH v1 4/6] leds: spi-byte: Utilise temporary variable for struct device Date: Thu, 6 Jun 2024 20:29:21 +0300 Message-ID: <20240606173037.3091598-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240606173037.3091598-1-andriy.shevchenko@linux.intel.com> References: <20240606173037.3091598-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit We have a temporary variable to keep a pointer to struct device. Utilise it where it makes sense. Signed-off-by: Andy Shevchenko --- drivers/leds/leds-spi-byte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-spi-byte.c b/drivers/leds/leds-spi-byte.c index 1fc0a8cc123e..e63958e584c2 100644 --- a/drivers/leds/leds-spi-byte.c +++ b/drivers/leds/leds-spi-byte.c @@ -116,7 +116,7 @@ static int spi_byte_probe(struct spi_device *spi) init_data.devicename = "leds-spi-byte"; init_data.default_label = ":"; - ret = devm_led_classdev_register_ext(&spi->dev, &led->ldev, &init_data); + ret = devm_led_classdev_register_ext(dev, &led->ldev, &init_data); if (ret) { mutex_destroy(&led->mutex); return ret; -- 2.43.0.rc1.1336.g36b5255a03ac