Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp550337ybl; Thu, 12 Dec 2019 00:35:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxfQyfAktW/xfGNRZfsmY9075qeWPeoxMmTMkNTEJ6jhV1101H8KgwO0bUvENkYByjWYQiS X-Received: by 2002:a9d:3425:: with SMTP id v34mr6585537otb.142.1576139754406; Thu, 12 Dec 2019 00:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576139754; cv=none; d=google.com; s=arc-20160816; b=xbmZ5n8PQGB4HFMHLznikDJgpwWfDaZMIMdqzoG+cGcf7NlO17j+sF37q87ZxJ5xTd w/57+YY1KTmC3ZPaIBwDZ5dRt5JQYw37QmW0EQx5B59/kWrDgujfe94lCz+kYy4VIc8x /6xLuxamXn+TG1WlEZ7BkSC/OvNunZdyKG9Z48vj/UNmorxmgl1JSq17phBkK1YIX0YZ iXfe6nA4aMKws6cWTS2vfRpMowMYUcyqPY5hroDs5FqvFDraYMQc1CaXqnO9swmGqHHy CSId0RCN+1J+vFC5p5UyrMB1PdohM3wm4Dds+cOx4W/gNwsQs78+n9vEGGXGpCHAIFfC PFtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=cmicnf+BQD4VZkHkG9y3oHnY4nfW4yOkLF2345nDC3E=; b=G+2XKQ2pSDDuaBstnMZS+seMvXAomBs7918G+P+ld0aw9wSn5aahmCoBagWIsSm5+C OJRJqC7gtm7WqOD+IOVLMXZJhx7rS2VaON5aDYtWMAkks/5zK2BIswdU69SBb98iuy88 ne00M/Xa+ZXeskIoXprdT95Ddyc7iSwLTbFGN3UEkXYvJx41UeOt548Ol8bweKkjX6mL ltB2k3qIbvGOeaml/EfBgu8rlXRigLSXbmfZQYmThNkukZbtFgNeHosb1QslUdCk/pAF 8TTBalouBFT13XqCFjjuhTm9184lle9jH3ECIa1A4aEc9gLXxUauzqrO/XqsuQmpincL gF+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x137si2637256oif.42.2019.12.12.00.35.40; Thu, 12 Dec 2019 00:35:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728211AbfLLIeD convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Dec 2019 03:34:03 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36107 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728080AbfLLIeC (ORCPT ); Thu, 12 Dec 2019 03:34:02 -0500 Received: by mail-ot1-f66.google.com with SMTP id i4so963287otr.3; Thu, 12 Dec 2019 00:34:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7fvx7yDi2OJnCljKrNkvyaUJ3elftb+j+bBc7GwPwuI=; b=GCoqvd/2PN5TIrbvvi2f/PiCnEt2TnHkDiAtjKlQjY6zbbRj+LQdACs8pDesthy7c4 wZJIpSLNMP0RcTfBtezuD2Q5eEQTGTwFSXotoYjiE/IHgBuVlnMYdRlyKHoW4+se5qpD yGMlhm8X8q1iG5Xi89zLftB+6aoUEFInSxxgjA4RoSODZncQ7/a0zlY68qt39+5OoIzo /cU5Rj4HRYwqcIb7affzE0o7sBrWREvsvff3v39MZKiZ+lDhFgQfU8qBHZuyYwEU1RpF IKU+HlKjOEGlC0F0UqUC3WCIV24XbUy1NWnrCFL5iiGrwBviKZQwz/IXpyGtE7Fg0Atr teRw== X-Gm-Message-State: APjAAAUs9p04K2u5A6UFl3XZJU3TSPaehYJ5+Qdv4VywQcl9NQ1+P+Sa BeZhBlQ3w9fcnDuAsIKpJ4wxqyxCI+DSls1qdS8= X-Received: by 2002:a9d:dc1:: with SMTP id 59mr7008960ots.250.1576139641834; Thu, 12 Dec 2019 00:34:01 -0800 (PST) MIME-Version: 1.0 References: <20191212033952.5967-1-afaerber@suse.de> <20191212033952.5967-20-afaerber@suse.de> In-Reply-To: <20191212033952.5967-20-afaerber@suse.de> From: Geert Uytterhoeven Date: Thu, 12 Dec 2019 09:33:50 +0100 Message-ID: Subject: Re: [RFC 19/25] leds: tm1628: Add 7-segment display support To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: linux-realtek-soc@lists.infradead.org, linux-leds@vger.kernel.org, Jacek Anaszewski , Pavel Machek , Dan Murphy , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andreas, On Thu, Dec 12, 2019 at 4:42 AM Andreas Färber wrote: > Detect DT child nodes covering more than one LED component and implement > a text to 7-segment display mapping. > > Signed-off-by: Andreas Färber > --- a/drivers/leds/leds-tm1628.c > +++ b/drivers/leds/leds-tm1628.c > +static const struct tm1628_ssd_char tm1628_char_ssd_map[] = { > + { '0', SSD_TOP | SSD_TOP_LEFT | SSD_TOP_RIGHT | > + SSD_BOTTOM_LEFT | SSD_BOTTOM_RIGHT | SSD_BOTTOM }, Please use include/uapi/linux/map_to_7segment.h Yes, it is well hidden ;-). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds