From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 59B3A381B0B; Tue, 31 Mar 2026 18:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774981862; cv=none; b=Y0N8hjJ/2Pu5pM4cS/8qEdeVqH/dhT9MPwBpyA/nbd51DJjeCD+reeBnLylmscgwD9eamV/1PzF+zqxJUDQAMev4STplOVLQ/sIDdqM5fyZK8uUkhdrH+0jj08iYKPom6gQaIEX5HuHxP7T7XXxdRBZBtrKvY4+lPKWpfqoEyTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774981862; c=relaxed/simple; bh=r++qpR0g60SJxWDF3lstz49v1bI87IncDSutxNWST+A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VGXN0x2uUi1sLxrta0vgmt3ZZB2wIDfxqO4G1NVnrWnFDh1xw6ZY37rEI/CD4jTDERDFcyExP6bkxodxvU0A5NQpGaPPnZlDXbaVRSa7W6SFxGomJmsg3o4GkZGnSuKYrhfXPpU3qvZiQoOexEysUNlP/9aZcUIJEaLBGs8PyCw= 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=PGZHGPq0; arc=none smtp.client-ip=198.175.65.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=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="PGZHGPq0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1774981860; x=1806517860; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=r++qpR0g60SJxWDF3lstz49v1bI87IncDSutxNWST+A=; b=PGZHGPq0exrYXdBiwoJrUsQqc6UBz7BqE4vR7iWowVeM23yrvqbS4wEh 903ys7q2maqx3Eqd+Lm3WQcr0XzweyCJprsyaHvIkjSeTUVrnChykiUP4 ZX508LelSqfBgMC3bhb7U10XeXX0OxabAIro3qGmXuUN1ZHqz9P9a0rgn 9V0787BRcJXRvfC1V+RYE1EtrMSxW5IxnMvSpkxvPs7lSiLP1lIkw4UB0 EOBEX5BpoGnax1JA00lyKSt1cf5wD0i+tu/sqftIzbWszEHhhLKr06KQ+ gHsEob2QrSPy1kAJdj4ZC6VSiOAMMBce+ppP47cgwWZgA5IGTRJBZbLH5 g==; X-CSE-ConnectionGUID: kLjMAZJpTH+PUZ2Cf9jOXw== X-CSE-MsgGUID: uQDIJOERQzCmWoryN3Ak1Q== X-IronPort-AV: E=McAfee;i="6800,10657,11745"; a="75891191" X-IronPort-AV: E=Sophos;i="6.23,152,1770624000"; d="scan'208";a="75891191" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2026 11:30:59 -0700 X-CSE-ConnectionGUID: YpcIbbPfSfS25PSsOJVt8Q== X-CSE-MsgGUID: uJFpVrnARKmRp+9/PxqkMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,152,1770624000"; d="scan'208";a="225619059" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa010.jf.intel.com with ESMTP; 31 Mar 2026 11:30:58 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 612DA95; Tue, 31 Mar 2026 20:30:56 +0200 (CEST) From: Andy Shevchenko To: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Pavel Machek , Andy Shevchenko Subject: [PATCH v2 0/2] leds: class: improve led_remove_lookup() Date: Tue, 31 Mar 2026 20:28:27 +0200 Message-ID: <20260331183055.1209526-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This mini-series targets led_remove_lookup() to be more handy for the optional resources. The first patch makes it no-op for NULL pointer and the second one makes it idempotent. Changelog v2: - added patch 2 v1: 20260327102729.797254-1-andriy.shevchenko@linux.intel.com Andy Shevchenko (2): leds: class: Make led_remove_lookup() NULL-aware leds: class: Reinitialise list after dropping from lookup table drivers/leds/led-class.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.50.1