Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp572102lqh; Fri, 31 May 2024 09:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcrg9DPWvrz6tAijni2Z4I/+zXKrzyOl29raHRCsNO+WFUMR1YtwFQkQ67PX9FeTqs1NOdsumrUyL1nLRtWAuNXalz/lD53Wo9hiO8OA== X-Google-Smtp-Source: AGHT+IHO+ZaJrq5CLurFzuSl9snZ2fTzo97LQF21DNelcaBlsIgWKFpGHmml2hBPlIpKRXsbWh+j X-Received: by 2002:a9d:6f8a:0:b0:6f0:616f:f186 with SMTP id 46e09a7af769-6f911fa4adfmr2725235a34.29.1717173382952; Fri, 31 May 2024 09:36:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717173382; cv=pass; d=google.com; s=arc-20160816; b=sMFOXc8NrDYrun6QQ0PcHIm7TLmp2vmttuQGWJdu4vLPOZmKkb2gexTZWCtQvX/oJ7 2gp13OEUJMAyTvpumrIu+kryvKH8b2UdKKwhEhFVhYepNd0pdezyn/aWpaKvmshXxXJI Sz36xGDWb51d7ESQ4GFlkHg7MDokWAcstA83UNEC4r4pbfjjJJKLiKqtbxMHWBFnY4rq BifrAi2Xw3y/6q4XlorFhqVZnkD8HINrhrPKIH6DemnUXAobsQ7oVE957DgF9rhuef3u RPqPIZg2mOVjW87Vb4mkaD/yxzTjUhTofi1Fd53dR2DGFsMKNM+gn7ah+SbWD8BHOmxJ vW9A== 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=cuUPtsq+i5mLUpOlCgjGFGKNswqG2NHcbnhNtPnvngg=; fh=XLi9m/0X8PjVhIWQEAZtk+9KXM176oIARH6s/tAj4ok=; b=C8r/QecbsaZsB5ru13Pc11+KVwRJr97s3Q4dHPLaCEmIBZagsp1t61Z7DKLYjksDlk pKDB/Nz1a2K8zTOhqX53H/N8d3fwshUnen886Xg0AUhN8sWjFdIlyROXOq5FyRNnLUfb sZ5f+hHOHVxZ8sw0PFyEse5KKvBYXv4+w4UbVKX4EplEJm8bsFkJZsVAKJdvfrjfZui1 nJIx0wZ4lBMPlSOMehTkDMf3cKmdmzK1a1VneRN9PUw0ALNsjUzPhIqEKVntpvLjZWps kdDSRUw2blwi/IC9+jLkc0yO+aCjkxMf3mVc/eBP3gB3cKDdRzkyO9+qLLMIy8KdVRSH b4cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=edq95LqL; 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-197167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f3063068si262814785a.295.2024.05.31.09.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=edq95LqL; 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-197167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197167-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A3A961C238FE for ; Fri, 31 May 2024 16:36:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A545A17FAC4; Fri, 31 May 2024 16:33:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="edq95LqL" 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 7CEEF16FF26; Fri, 31 May 2024 16:33:45 +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=1717173226; cv=none; b=FdnKwI5aAjkKZVPc7y3wUmNY3dgxT+N6MatVmSPE9O0tSTXsbkdYlhGkI8KAmB13OVOIuvqJX0YDxIsnTi8iFgbdOKBp8n4aDUa8EZ2gQ2M+T18ngm0QiDnViYnxNomjil2b9RWxJWPE3kJz+mNi+U4XZVy5lz0gEeTZR0pqaQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173226; c=relaxed/simple; bh=n2u4OD+7kEm8RZjvbkONoagB9zqSR2+KV+RE7i+Xr9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q+N27n3p42w1GmptDxLlplTZlOt4gGJGy84d8enKyYBKlQhwTX1CPuvgHWcotgYd6QJxedqc9cWTvyRzXvAiWQsmoiZQdQSVmRqsEkBjpHbScJpZzp6qiAjwvnhsy/Yf8mkyRVHr43aj5bmuEb0DcXcGiGX1OY9OFNGOw5mpPQQ= 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=edq95LqL; 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=1717173220; bh=n2u4OD+7kEm8RZjvbkONoagB9zqSR2+KV+RE7i+Xr9s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=edq95LqLrPPm2YXFqMAs0HpHQgNVFSonfwL9wXPPbVQ074XCiuGUa0NiSDDslO0GH 0rCyOsnLt8samykQCfP7MgQBRzcZWl9vnZ621bZuH6H5g/cPQlEztRf5KXQGQoFFnk yQIiuLP8B3pi2UK/Saojsmp9/j3ZBy0fvqT+jFJo= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 31 May 2024 18:33:35 +0200 Subject: [PATCH v2 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: <20240531-cros_ec-led-v2-5-6cc34408b40d@weissschuh.net> References: <20240531-cros_ec-led-v2-0-6cc34408b40d@weissschuh.net> In-Reply-To: <20240531-cros_ec-led-v2-0-6cc34408b40d@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=1717173219; l=1053; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=n2u4OD+7kEm8RZjvbkONoagB9zqSR2+KV+RE7i+Xr9s=; b=aJcIWhKSLFoYPkxa+/8iXSsj6IdWqycbussAt1FOAY7KA6y7tuFQkETdYl+xMXuWXzskLpUpb EEcOxT3ntu2AbSQOerKUA83fH4xvFy0BiwwrZ7wPR67AmumBGeRoKyd 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.1