Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1858474lqp; Mon, 15 Apr 2024 22:41:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDGpxhVduAbdJsXYSpJIj4zpP4LLMxGVOA1FNEJ0/4wWprQ8PZdoEkN1Iy8GdqXn2sRXybvb3WoameaDci92Ys78hmvW4amciEqlQMqA== X-Google-Smtp-Source: AGHT+IGi9qypDv2QbosKy834xPwovojuzooCNDZrQsOkbd8he+58V7yuMWVmbiVrtMi+rnLoLTJh X-Received: by 2002:a0c:ebc2:0:b0:69b:3b42:e9a7 with SMTP id k2-20020a0cebc2000000b0069b3b42e9a7mr12885199qvq.2.1713246067502; Mon, 15 Apr 2024 22:41:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713246067; cv=pass; d=google.com; s=arc-20160816; b=AbxxdJ4T8ewFhqg8IgnzjZ6vWeSFnMbwGk1j7D81vzFuYZnSB8MjiHAAkrCffes5Fu D4csRW7hXl0NNEE6iGRmli50LdeLjGADkv7SNtCumYMsbbAxpm7C42SAoUKOKIxp5I5g 45OnpnIJ+78RmZgVMFz+5IaHaNB+CeDkjauwwZOFTYqrwpnM3BTgs8KM7Y7RNOxWs1np y5afhQWbzmM1t6uCdUyeN+1qhhkNidT/rWY7+JXzw9Z+hVO4aHCm6ykwXVDNOGdtZceb L0yfBFExi9xhfl5JjbU9Ie83xELD5CXYb2bAHs75ymIvuIWvt1Ipr8BMaA1sETsvVgUU oW5w== 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=oCFCbOFCL4zzLvTeJtHwSPF85SA+R3VeJ49a5BsSC8o=; fh=hfu+pxMW6jJGnce6KP7/+i5TYWb3+Zng5eoqE5iJ1ZE=; b=mvvIkvFM04kEu3fNblhoA1ZpnhEGgIiWhS9F2W2cFBZZ3MiPgnpYNBt8wK+25SlF/D YpCjedPAGeJyQPIDLyH+jrRQC5MvPLiVWqSUZ8SFTcEHXpAej6CIWEiXphqC7QiYMsbP sy+Hc1mYsitXDf8+I0+9oEywrXAiART9UWLnABUj2a2uWGry+r0/n1tnxXNMt5dhbOGO 5oUAOOyEZsMi3aJZNxt6Eyf9VK3xsz4A765Pya212Khfn4eeMih/TkeqRidydf76B0Go ehg0ikNDdbEfHKFdyQwkMInuNbyYnKgQRE+STU8B7MyEefZXWfPcpD5Rq2Gh7kTHhBvp DcFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f7mtHbSI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-146280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b11-20020a0cbf4b000000b006992fb629adsi11415226qvj.135.2024.04.15.22.41.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 22:41:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f7mtHbSI; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-146280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 316071C215DB for ; Tue, 16 Apr 2024 05:41:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 270A64642B; Tue, 16 Apr 2024 05:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="f7mtHbSI" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 F37FB3CF7E for ; Tue, 16 Apr 2024 05:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713246024; cv=none; b=YNycSplFfAYDvlACSN3FvrRH8qCdHnorxs0vr+Sr8EFuWYs1QoepMTt038B+4nrTdkG6+Np9dICiEl1TXcF2v7L4mhe0dY9zytJceXXWn8yep6unKR6BusnB6VXzGx/mnWP30mbng301caJ4Jv8fOmhWg45r1NUv2Jq1dlNqt60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713246024; c=relaxed/simple; bh=p7Qf/Wv2gRIQXdGwm+8FyGDK8jF8gAk1WduxuCaLuAU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=moJws//t2Ragh62mAFy+58nMNd9/UjyR9llAq6qZhsOf06HFWElqMr0SRhKrkoDUoD1RGcbwMzYPlXE1Oq5OKQKzu0V205V0tFCHgEGOC+VBe2fUTQPZQYCQV/eVOsifurZVHnGk+sXtg4gQQmBaSg8GrjTgAzaLU7gH1fPQFM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=f7mtHbSI; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713246022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oCFCbOFCL4zzLvTeJtHwSPF85SA+R3VeJ49a5BsSC8o=; b=f7mtHbSINfwR/rBXQGjXC5aPYFfJc0hhS2yaEhg1VQ64ZgD9DxDQiWAyfIJJoUi0sju2qk 03I3hj2U4Tf2Esx1PSDCwMHHP9jj6eo5t7DdxhqGiMZ35Am0QRCaXwAQcszn2zcZqFtW60 0oLXBSwlZ9R2PST8SXrgbaRW4bubMJA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-GYCt1oTgPSinxF7vLj3KzQ-1; Tue, 16 Apr 2024 01:40:18 -0400 X-MC-Unique: GYCt1oTgPSinxF7vLj3KzQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D7F418007BA; Tue, 16 Apr 2024 05:40:17 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2AA0E51EF; Tue, 16 Apr 2024 05:40:11 +0000 (UTC) From: Kate Hsuan To: Pavel Machek , Lee Jones , linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , linux-kernel@vger.kernel.org, Andy Shevchenko , Sebastian Reichel , linux-pm@vger.kernel.org Cc: Kate Hsuan Subject: [PATCH v6 5/5] platform: x86-android-tablets: others: Set the LED trigger to charging_orange_full_green for Xiaomi pad2 Date: Tue, 16 Apr 2024 13:39:09 +0800 Message-ID: <20240416053909.256319-6-hpa@redhat.com> In-Reply-To: <20240416053909.256319-1-hpa@redhat.com> References: <20240416053909.256319-1-hpa@redhat.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 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Set the default trigger to bq27520-0-charging-orange-full-green. The LED will show orange when the battery is charging. The LED will show green when the battery status is full. Signed-off-by: Kate Hsuan --- drivers/platform/x86/x86-android-tablets/other.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/x86-android-tablets/other.c b/drivers/platform/x86/x86-android-tablets/other.c index c77d56454f2d..52032a874b7f 100644 --- a/drivers/platform/x86/x86-android-tablets/other.c +++ b/drivers/platform/x86/x86-android-tablets/other.c @@ -610,7 +610,7 @@ static const struct property_entry ktd2026_rgb_led_props[] = { PROPERTY_ENTRY_U32("reg", 0), PROPERTY_ENTRY_U32("color", LED_COLOR_ID_RGB), PROPERTY_ENTRY_STRING("function", "indicator"), - PROPERTY_ENTRY_STRING("linux,default-trigger", "bq27520-0-charging"), + PROPERTY_ENTRY_STRING("linux,default-trigger", "bq27520-0-charging-orange-full-green"), { } }; -- 2.44.0