Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1358876pxm; Thu, 3 Mar 2022 16:09:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg2GSPFe0InOlRnQOXPIkLWFqcF8HTYgk4nK/jq9EedMfJoc6bu6RwPs7SZXrZtrCAT47V X-Received: by 2002:a17:90a:db12:b0:1be:eb72:a63b with SMTP id g18-20020a17090adb1200b001beeb72a63bmr8039326pjv.94.1646352545652; Thu, 03 Mar 2022 16:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646352545; cv=none; d=google.com; s=arc-20160816; b=nsthQRuKe2/tzd/Cohwco0pRj2ZTD30ipRXOMpkEb8f4rvP+sEKksDn6RLU0h4XuE9 L5ui4Ct9aEY+jp5aDajHKIJcJFkGezEUDXFgxWUCL0MUsVa4G4/Uw28YwltP3c1q+dQc 8u38NUi/5rAeZkvVBEj4VN7tJc+LLzNCyQujB4dfU8xhrgpbI2dTP7cexbrZYzIBZ2oS EZZhavgsIknuFQIUusbC6oEdIAf0f7rdlDIuLOpPLvPXiJ2n7nSF6yh7lhbRQC9Su4r2 98/lk1cmwUVh6MpgItnwu9eEbZrjjNuzG9afkMwl5+Jvh06LXQiOcVH9996PJi6+UKIK /0Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5J9I65UbkqTgZqocupgFMVrh/v13xuePEj3sqiuHDrE=; b=BZYdNw5F8Yvn3Cr+Y/2GKmOGUNPxKsg0yg75zYU2kGz9AI0S8E3iWprqj5tvw0XjFy RKrf/XV8MuPUc2FlC3DCVnqXdcti2KkE7nrkFlbfA7ITfiTQaKDhEArH8o/spV2Skow+ eD/8b8ql7QWbNTMJdfk9lAtTl9UlJyUdn2yUVneJ2Z9QE+CMc9Rx3EVrjP2607oiYcRV mWO0mDtxHqSKBCG3Fwu132cc0Z9g48fkhUyYLkZtHiGKbx6brhNRfbB1UcCCT0jw+YjV RELauC2L5193Mp3O0Q2lms/iAXDBaqfrNU/kUcNOsM4pjQ3k0c8JKhReDbT/Gd+AYkvr 2rhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOBR3gtw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170902a60800b0014f992a21dbsi3064725plq.111.2022.03.03.16.08.49; Thu, 03 Mar 2022 16:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOBR3gtw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234258AbiCCUV6 (ORCPT + 99 others); Thu, 3 Mar 2022 15:21:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbiCCUV4 (ORCPT ); Thu, 3 Mar 2022 15:21:56 -0500 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADD717226C for ; Thu, 3 Mar 2022 12:21:10 -0800 (PST) Received: by mail-il1-x12e.google.com with SMTP id k7so4937646ilo.8 for ; Thu, 03 Mar 2022 12:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5J9I65UbkqTgZqocupgFMVrh/v13xuePEj3sqiuHDrE=; b=ZOBR3gtw9JcM8CEtuun1vNHrFqCEdh2rIbArXdNAJGIWEKf0GdH5HSVtA4ZOsoQQiX YaW2jUZeiIo7D8WKv5SyBGM8fg62zv3bPYNIl7U0gHKMfG00w1SY0gPTV48jOK7KHlZc WIBdGFrESjjtJE0x2jd6cwpcFBkbA4vLS0yYgqawFJbdsOsXDtiyJwiZ6fAc/XJPnCE5 jJ0VCxB7r6gmmB12SnsRHObPNPAkxXrzrwkG+RtZ1IvgArAd63ut33oxxuW7ewiCTzhA KTN221iOgq7l1dmF8UEKFWkVFdEZPaV7mTfj2sLI8eGC/IKPOzuTDIy+tpbqypWfyv5W iP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5J9I65UbkqTgZqocupgFMVrh/v13xuePEj3sqiuHDrE=; b=F/u+d84T055YJ0+9dFS+jrSfSkj3mhSqEzuDZCN/ZskOQFFP4/fuqMy5iAC4Sg58mc 6RdyOVR7xjB+gol76+ZSGaSPp2yhTu822a7tD4UFPkCRvEKBKErOe1v6QbN7u4gxRO+D DEf/+LrSd9UipgWdLuAET0NAxQGSt2pakGMPi6brDu0d+T3fqj9BiP+++Cj1kLXk1cQh fri11Ls19Sr5lmio6YFWaWxRwBox4En8kWuqXs2zw8UXfKstgxlEVhRZd5OwmqdxA3qj ASXaFyuSPA3o5WHvaiIDuyVlP6f39qfgUYYWpJV5rPzTA6sMqTYinDSQUGUqDv3Pc8RD AC+Q== X-Gm-Message-State: AOAM533MOzsuoX+eiIpBithtqM8RaTJLr6aGloKiqPfjfbarL2Jy6TXH 0dxlH1fmPKg0xH1900vWTEOwHzm35l4g/ggal/Q= X-Received: by 2002:a05:6e02:1bc5:b0:2c2:7bc9:8e8f with SMTP id x5-20020a056e021bc500b002c27bc98e8fmr33286489ilv.5.1646338869676; Thu, 03 Mar 2022 12:21:09 -0800 (PST) MIME-Version: 1.0 References: <20220303173935.100622-1-cmirabil@redhat.com> In-Reply-To: <20220303173935.100622-1-cmirabil@redhat.com> From: Miguel Ojeda Date: Thu, 3 Mar 2022 21:20:58 +0100 Message-ID: Subject: Re: [PATCH v7 0/6] Raspberry Pi Sense HAT driver To: Charles Mirabile Cc: linux-kernel , Serge Schneider , Stefan Wahren , Nicolas Saenz Julienne , Mattias Brugger , linux-rpi-kernel@lists.infradead.org, Linux ARM , fedora-rpi@googlegroups.com, Daniel Bauman , Mwesigwa Guma , Joel Savitz Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 3, 2022 at 6:58 PM Charles Mirabile wrote: > > - Changed userspace layout of the display driver to rgb565 triples > and removed the gamma table lookup and the associated ioctl. If > the user wants to recreate linear brightness scaling, they can > use a lookup table on their end. Doing this also removes a lot > of error checking and general code complexity, so I think removing > this feature is actually for the better. Sounds better indeed! If I understood correctly how it worked in the previous round, it should also allow to use the hardware to a fuller extent. > - Replaced if statement with call to `min_t` function in display > read and write functions. > - Replaced the custom llseek implementation with a call to > `fixed_size_llseek`. Thanks to Miguel Ojeda for all of these > great suggestions. You're very welcome! Cheers, Miguel