Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2348969lqo; Mon, 20 May 2024 03:03:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtS02I7xbaUxB2xAY7WpSuC7zXPOUJivO6GEVDeGoRtpQL9a0DVAMgi27bJfpJVeouT3IyqcupshsERSn+mgjSzuIPAmQ8UNWntG/bKQ== X-Google-Smtp-Source: AGHT+IHF/uvBOMtsDigoYJqKHqx8geN4uzvK5ExtlDz9nzUKlxwiNIoPiJMhPjBLhjHprXlHrREt X-Received: by 2002:a05:6a20:e30b:b0:1b0:3190:96de with SMTP id adf61e73a8af0-1b031909804mr13636896637.34.1716199384634; Mon, 20 May 2024 03:03:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716199384; cv=pass; d=google.com; s=arc-20160816; b=ntZFjSOcCmbZ21QGD9iwFtWd4pYNUzOwI+XXpfY/Mtdo11bB5rwwuOBiE1NG8vG5Id aIxCBJxhQHJ+YOeidA+Gs4/kb0W/nP5XXqIGlmpVQ8X/xp038R20J58V/IS7uJOT4Lp+ y0g1mUi9vxigKAMH0rpuWL8WQq4KwR59EE4dXjBRRAwQ+EmozGCb6SEMw9cdsDIlkSpL JBJaWhNhWv4ryIxnoquguqYUm+7Z7EG2OdDlCVoMKX0JS+Oq4uLoebaC01E3lk2FEY1H zUQFbnl7wxQfS1dLl2g5tUCkoseCqJQfZ9bIbLUvMayStFA3Ua210nGJGOaR8jQsNWlg upxw== 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=MWeQ+FNiEiMs0PLlSX2huWjo8HCATq1FSNZgRyOMbcM=; fh=ilYn24DrbkS5/SSJpQ9bwmnzSJDVPtZy9VYJXzt05/I=; b=Hh+D+IxlH6443YRCjjaX5m0mLK465C2H8JR9ajF4OVucHHK6OgpaCC4x/GqbEf95g8 j6V5fJ2VVXbA/vHbSDz8uYJukgxgBBk1wNOzBCr3tsGLg36/TdQ6emOKFK89uH8gh2Dv WzWPwXQADTIdqCnDuQ5us0kwyXdZ4O0jMND9ATWgvvQadv/qxBM+r1Kcb5tEj1G96fDA 41rkkAkF/6S17ATVajeU05f0kQhKzRBckwrtfhLAQ4Qi/zrkSCMqHFakAOOjNg/0jxZF BHiyEVpTKn7S296V2o+ShDw6zkID95hjhkDjkvCNtcDmprfGQoRWavuBclfqhKG4JXTR 2rNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="oWp3MdS/"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-183582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183582-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63e13e6e3besi16233786a12.713.2024.05.20.03.03.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 03:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183582-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=@weissschuh.net header.s=mail header.b="oWp3MdS/"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-183582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183582-linux.lists.archive=gmail.com@vger.kernel.org" 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 A57A5B211E7 for ; Mon, 20 May 2024 10:02:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E608B53811; Mon, 20 May 2024 10:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="oWp3MdS/" 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 C90DB51C23; Mon, 20 May 2024 10:01:18 +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=1716199280; cv=none; b=oTBunlo81fHNda1+PUql+HNZRwiVOWY/gfT+PKXBKwWkdUxDd1lHhMj77CBZPnY+fhXlwN8oXYZrMTzIhMUi6Xhnm+EvyytU2xwGF5v4c8t9Z//N9EiWgTg03aPzBuD2XAPIIYP8qi9/Kgx2Kai0202YKZl7xSthpGlKFvHSgeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716199280; c=relaxed/simple; bh=jd8wTz6WYVqVeMAVX4s7b1YWkersuhJAO102QlOQKKE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q+JwnAeh2vMxdtue3JYLfP8OMW8LEAoDbWKsfbymwFnSNh94GE4TSflANky4R+57W67uNtvTrY9fZtaAdwr+WckznULCGFG7FBkftLCOKoBp1gY16XLC0jHsOGhmIsuJ4o7oJvzgpcoVEEbpJLESTm85cfK3TaQKwt7zcX0SqbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none 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=oWp3MdS/; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none 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=1716199266; bh=jd8wTz6WYVqVeMAVX4s7b1YWkersuhJAO102QlOQKKE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oWp3MdS/k7rIUXvvtZfLF2ynqzdxT6JSPr9znGuUdWuwxcCbe31+kB27sc838tEI8 iRwmjVk86hSPVN6edyhFK1IiL5ChjAX9b9LzST0DZzNCHz1ySFiBofSOrNyHtph6AA 5f3t6gN4TaK/NhEMwD4NzWr0H1pcDJNERZG9uLZY= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 20 May 2024 12:00:33 +0200 Subject: [PATCH 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: <20240520-cros_ec-led-v1-5-4068fc5c051a@weissschuh.net> References: <20240520-cros_ec-led-v1-0-4068fc5c051a@weissschuh.net> In-Reply-To: <20240520-cros_ec-led-v1-0-4068fc5c051a@weissschuh.net> To: Pavel Machek , Lee Jones , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Benson Leung , Guenter Roeck 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=1716199265; l=1052; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=jd8wTz6WYVqVeMAVX4s7b1YWkersuhJAO102QlOQKKE=; b=sSk5vFbiWCIsAMYqmI4K1JX8juFRw1qlEtHqUGfNVZYWD57IPFCEYQqO7SZb0AvW6dntOCtiZ eN5WvdSlLeJDJ+vdrL9uCIu92ioNXLEvMiNX+ed+e/0h+ClmDuHp091 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..d8cf1c5ce5a1 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