Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1398550pxb; Fri, 21 Jan 2022 17:39:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwPw9xSvM8Vez0ABpCrRN9tn1sUR0bEW1D53bDjX02ra7zx2X1wWYW1NVF4QoTc2sKPY8w X-Received: by 2002:a63:5d0e:: with SMTP id r14mr4797574pgb.110.1642815586754; Fri, 21 Jan 2022 17:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642815586; cv=none; d=google.com; s=arc-20160816; b=xKvv+o51ePhzRZMrU6nXjVNq7srj5oYwkLQ4hHP2s0iSfUP0+2VbQBvJ5XUsU2DsMx IhXq2LfYwIc9DlMRGKH6pEz/N/6Ce2R7Gokte8Lxw+I0jxzOTgqDKRN+7J8bAAFlf/Rn 5yBx5+ovy5Lci2N3T+rEiwsqbBe3ZXkSeLXEdqNdF4bVyBFk+voLFqVPTDwRF2f6jFKO YqbFDgZ0o+uIWXx+mNByymzmd1orUKk47PNK7xNp7J2oMVU8fRkZlDvr3RXX+8lCFoyw KMe2z/xO0hoWX5+P3c18BNBdGG0xEwaOajOgjt4yt4rZ9FA+EDuGQpxtXcT3BJuS8nbL 5g1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BXRfLWX4mBG5syBxtx9HSDJwO6YcqBQga66tfLlALH0=; b=IjDv4hGB1kav2NrKGk29sypr8VsUdrA50qLCrbm2Q0EVSPfctRp5DbA+YYLy11oheW O9s2YQil8odRxLTYr+Gkot9fVZXOcWDgTHF3wpNKrVOW57vOTFaqNNPlQCEC18sBT9MJ vQXZIUI7b4SQBKMunnsRzEEqpfNsHthgVTjmGZmR+tZMb3iojGhRe9pKUThc/15ZHpf/ qBYxV2ySgtdPmfa5i1jnY4lPLIKpPWD/L3XWGcidKMPSGco06bDsK3wJrEya5lrYrxDy BIhTIM1YbUWja5Zq20alGlxHWovrSBu0dARDcz4krSfS0g2ko7ahxcD66cm1256zqj9O lf0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si8094025pgv.33.2022.01.21.17.39.35; Fri, 21 Jan 2022 17:39:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380882AbiAUOCC (ORCPT + 99 others); Fri, 21 Jan 2022 09:02:02 -0500 Received: from mxout70.expurgate.net ([91.198.224.70]:14772 "EHLO mxout70.expurgate.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380881AbiAUOCB (ORCPT ); Fri, 21 Jan 2022 09:02:01 -0500 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1nAuUF-000X39-HW; Fri, 21 Jan 2022 15:01:55 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAuUE-000UBQ-PX; Fri, 21 Jan 2022 15:01:54 +0100 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 44C68240049; Fri, 21 Jan 2022 15:01:54 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id BACE5240040; Fri, 21 Jan 2022 15:01:53 +0100 (CET) Received: from localhost.localdomain (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 7587820065; Fri, 21 Jan 2022 15:01:53 +0100 (CET) From: Florian Eckert To: pavel@ucw.cz, robh+dt@kernel.org, andy.shevchenko@gmail.com Cc: Eckert.Florian@googlemail.com, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 0/2] leds: add ktd20xx LED driver support Date: Fri, 21 Jan 2022 15:01:48 +0100 Message-ID: <20220121140150.1729-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Content-Transfer-Encoding: quoted-printable X-purgate-type: clean X-purgate: clean X-purgate-ID: 151534::1642773715-0001B691-47192F87/0/0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1: Initial send v2: Remove variant 1 from source v3: Changes requested by Andy Shevchenko added. Thanks for reviewing - Removing OF dependency - Add missing includes - Use device_property_read_u32() instead of fwnode_property_read_u32() - Use one liner function pattern ? : - Remove switch case call for intensity color selection use BIT() instead - Remove not needed fwnode_handle_put() in ktd200xx_probe_dt() function - Use dev_get_drvdata() instead of i2c_get_clientdata() function call - Use sysfs_emit() function call - Use kstrtobool() function call - Remove not needed comma after last array element - Use dev_err_probe() instead of dev_error() in driver probe function - Do not use dev_group registration function set .dev_groups directly into ktd20xx_driver struct. v4: Changes requested by Andy Shevchenko. Thanks again for your review - Fix Author indentation - Reduce logging noise - Use 'if' standard pattern - Use set_bit function to make code cleaner - Use meaningful jump labels - Updating the logging output to better match the source code - Remove duplicate dev pointer usage. This is not necessary as the information can be used directly from the client structure - Do not hide return value from kstrbool function - Do not use mutex_destroy function in devm mananged structs Florian Eckert (2): leds: ktd20xx: Extension of the KTD20xx family of LED drivers from Kinetic dt: bindings: KTD20xx: Introduce the ktd20xx family of RGB drivers .../bindings/leds/leds-ktd20xx.yaml | 130 ++++ MAINTAINERS | 7 + drivers/leds/Kconfig | 12 + drivers/leds/Makefile | 1 + drivers/leds/leds-ktd20xx.c | 582 ++++++++++++++++++ 5 files changed, 732 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-ktd20xx.y= aml create mode 100644 drivers/leds/leds-ktd20xx.c --=20 2.20.1