Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp198889lqs; Thu, 13 Jun 2024 07:50:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXggSflw0hh5gjfm5gWUAGuz5S7odSGFkLpXxLm1ii56+sD4MwTLsKL+sxRvkN57vVGJuB+EyRgcDB7yO+p4Z8PDFrCWMk836iN8ZVysA== X-Google-Smtp-Source: AGHT+IEp9XdlnSZJjVUSLoCHShM8WaksqZengr85Qrm6t0uWORSXrNCya6qOzwdEKbXWReOv2Mn8 X-Received: by 2002:a17:906:3688:b0:a6f:5a47:a5a8 with SMTP id a640c23a62f3a-a6f5a47a772mr105364566b.33.1718290207644; Thu, 13 Jun 2024 07:50:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718290207; cv=pass; d=google.com; s=arc-20160816; b=I6xs02o+LbrLiM4y6pnMTsE/yYsOxjgAUqwHdo5JN+g5oywTQ9pth0SnCbcdgIs4rA 7iF7fS9K2Ri4buHr40366haEPGaOfcBASmaCEABXB8bFBYrknNw1p720INqlK7EEJb/r pFV+ZtWa3mwoyD2p6x305+yZUpvoLubMvgenYHpIxuidxQQ5GIn1v/5/C5PDLRH/b8zM jEh2ujVBIYfDLoP3dZo0VrSfgeMLOCqbntaQtLE09P1KuN+Q9KhEkX2f29DrZSOFkAKL 1pJzl6RVqzuNoGPhE5wk44mMg9+lYnRPsgORnQzJEi83drJx/vTBg3lZHgZ2blj/gvVH r4zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=hevf15Q7hO5WVDh0KIq7SbAOJ+ta+liB1jD3kwBRiVQ=; fh=XLi9m/0X8PjVhIWQEAZtk+9KXM176oIARH6s/tAj4ok=; b=Qj6+M13NGtlGV8BwESIUD5DPkJy3yRaSF0nju/Sb6y3SEyEm382mzyxCM57Fou6pcy n308+EQZ24VvCMh5O/BwtPH6PdlAxE2x2PbYKGuCRTxZ3kVbfzVPVcbhnDZKv6IEwYXy /B/IpitvBP4agUHlwMMDa7/F4TfAiePfwACGS/G5qE+hDivYDKueM2T10zTkJ4BpxUU7 fGtfaWOY8+i63SbGzUxE4HXN/Y+KJRtbZbdCfBVoG7voXZomAndTGEDg51py1JlNoO6y 9TtcXBnfcjeCVTr8veX+/Kdxnwu03YSTEmghw6zz/TAco+xWsDiGLtPP9zU9aqs+eztY 4Tdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="pLd4/VbA"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-213467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dd664asi73783066b.308.2024.06.13.07.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="pLd4/VbA"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-213467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net 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 53F821F227B3 for ; Thu, 13 Jun 2024 14:50:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4CF4148318; Thu, 13 Jun 2024 14:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="pLd4/VbA" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 B2CB51474A0; Thu, 13 Jun 2024 14:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290135; cv=none; b=OJ36w8o7YtsQwNmPh9BYXcWvbDg+Yk5wZ6EqoCClaZ6optdm74IAD2QDtrVgcQe0ucbaGw9hvzbCIuNv1bnFg+IDW2sk0ZDvifdQhyMovqLJ3MUD7QVt97u5eNveDIa74yvtGuqNjsRPC1VIHEy0AzzrKhWlV04mKCAOKQ66hfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718290135; c=relaxed/simple; bh=yVxyVIwMRddgUEXhVZPY0twYDEXyBd/qRw3RPwi32Eg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jtB1knGqXC2ZE7qWtoV92oin9S6NAYfyhpY2rK9w2rlhaV9xHA02FQUDvEinHEdF+fOlGsPwjUz+UCvwGu2r1xEwQAdkWupDHE3LAmJB4zGX+udHULG+vvlcCTXY9zJibirVRKN75CpSmMFTZc2NgEkecLT3/Dv3I/Ea4BFwJWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=pLd4/VbA; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1718290120; bh=yVxyVIwMRddgUEXhVZPY0twYDEXyBd/qRw3RPwi32Eg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pLd4/VbAsVstarpEzFdot13IT4mpN+rMLEk92Hldp/KOBHZrEUNlt7h3LVQZDwrDf STz3oQldRrJGpAL8HXEcJZGklrh3uTqfM1j2QC+f79i1fLLRMoX342pG1Jarg/pcOP UV4n+hl0mWNy5HTJ59M2qCBDqTG3ipn8Tgh13JeI= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 13 Jun 2024 16:48:40 +0200 Subject: [PATCH v3 5/5] mfd: cros_ec: Register LED subdevice Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240613-cros_ec-led-v3-5-500b50f41e0f@weissschuh.net> References: <20240613-cros_ec-led-v3-0-500b50f41e0f@weissschuh.net> In-Reply-To: <20240613-cros_ec-led-v3-0-500b50f41e0f@weissschuh.net> To: Pavel Machek , Lee Jones , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Benson Leung , Guenter Roeck , Tzung-Bi Shih Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, Dustin Howett , Mario Limonciello , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718290119; l=1053; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=yVxyVIwMRddgUEXhVZPY0twYDEXyBd/qRw3RPwi32Eg=; b=N/ZDeeBVukUv4uGrxzH8013chzUsFpC2ISJK3xoUpLuH+svvdsuJuaVl8u+lAI3vDRmc+p8As a/mu6Gz3/4UB/mDhRXTvpg8sW1RvC7GWucN3XzW/7ltiWxe4AGV47YC X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Add ChromeOS EC-based LED control as EC subdevice. Signed-off-by: Thomas Weißschuh --- drivers/mfd/cros_ec_dev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index a52d59cc2b1e..d8408054ba15 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -99,6 +99,10 @@ static const struct mfd_cell cros_ec_wdt_cells[] = { { .name = "cros-ec-wdt", } }; +static const struct mfd_cell cros_ec_led_cells[] = { + { .name = "cros-ec-led", }, +}; + static const struct cros_feature_to_cells cros_subdevices[] = { { .id = EC_FEATURE_CEC, @@ -125,6 +129,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = { .mfd_cells = cros_ec_wdt_cells, .num_cells = ARRAY_SIZE(cros_ec_wdt_cells), }, + { + .id = EC_FEATURE_LED, + .mfd_cells = cros_ec_led_cells, + .num_cells = ARRAY_SIZE(cros_ec_led_cells), + }, }; static const struct mfd_cell cros_ec_platform_cells[] = { -- 2.45.2