Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3898324pxb; Fri, 11 Feb 2022 10:07:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdbM3woy8gbI9+Gqcryf4S878E4Y0t7NkQg6Vftp3E/mJOod+LKFSGeuwNxrlutfhQigH4 X-Received: by 2002:a17:902:c40b:: with SMTP id k11mr2580429plk.94.1644602874872; Fri, 11 Feb 2022 10:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644602874; cv=none; d=google.com; s=arc-20160816; b=zfBGiKF9KkvZ3q9u70EQeTKk+I8up6BfoH0EJeXEaTyu+OFRwy5IHjVd03qSEVlLLd xGrqtOqORQ3nu/ABfBx4eVk9oAayBJRn9U3xa92ih0lVyLi/GBRsXxrF6M/+DkUchTkQ 2dZittdWDDSPyR2BI+2xWs1rt6gbSlnvBFMVPwxn8SyxxyxzPKNjZLFw6P5pFHP3V/Mz oqh6JsNkWhIthaWs3KVH5LJ/HHYqE6AdXehaQXA3V613KraN/MTDLEEI89SZM9e2z3nj z1by8OKACEYhbJYjDdQWxBCBIYJLBCeLgp2aIWsNVFofPiEQsSoRSF7QWwcs4OiTjJgx 1B+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=r1jepOygsJ0wYycqVUlKRQbdzNQ74bbTHpehDmycDkk=; b=HKKwB1ixcB/XxxCOUWamgCm2UoLVWyDVqYX9GOftW3gtwG8/tSirPR8eEzrw4FvsIk vGk7H8OUVwww0uGth4Rcgs6OArZv5UzxAiGjS0r99GVojTcyfblX1y6FZeyC2zRTJnXQ Zhjiq3NuezfXRbtZl7MMsF/nqv3qGWTy0f8Gf6CPQomg4XSwzKIm5zBt8C+6ejahaO1O yMikBW37ANxVuGyoAdD4qvOLvOijew9UyufxCgGUJJqL77qC3CZRgSP5QmNdhoBa7KL6 XoUg43s4F3tM6G0xKxJqylOg4MK4QPyTwU3SGwlkUKIkZ0JrhxIE+U7da/28dC6JZvaX dDzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WIsk39RA; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9si21854977pfj.108.2022.02.11.10.07.39; Fri, 11 Feb 2022 10:07:54 -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=@redhat.com header.s=mimecast20190719 header.b=WIsk39RA; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350081AbiBKM1m (ORCPT + 99 others); Fri, 11 Feb 2022 07:27:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350074AbiBKM1Y (ORCPT ); Fri, 11 Feb 2022 07:27:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C482F74 for ; Fri, 11 Feb 2022 04:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644582437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r1jepOygsJ0wYycqVUlKRQbdzNQ74bbTHpehDmycDkk=; b=WIsk39RA4IR9AQTDFPqzJI+QZ2R3dsAab1+W0DUUmw44bo4hAJY6ueIu/9mQg7KuK0yeHB 24M9tbWXevGaX/jLcxYAsDLHTdGPCAnhuhg5HDeaOVSPFyPTZXWhQ4htRxqlRB1DM2fI34 5jyxCtfzNmKQ6f8ZFjCbbRmgSF13FSo= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-221-jUh0okoiN4O6X66kpwum4w-1; Fri, 11 Feb 2022 07:27:15 -0500 X-MC-Unique: jUh0okoiN4O6X66kpwum4w-1 Received: by mail-wm1-f69.google.com with SMTP id bg32-20020a05600c3ca000b00349f2aca1beso2438740wmb.9 for ; Fri, 11 Feb 2022 04:27:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=r1jepOygsJ0wYycqVUlKRQbdzNQ74bbTHpehDmycDkk=; b=hBgL9htp+XGirkqSZMrzZdOrruT8utN8xThqgc2zIv7dRiYQVIJ5GG4DliYV7n1Hq3 HqsFTPEIBGt6CAbKRihxSM9MwfJaytc9xuS2FQjDE4y+16bIaJiUwJ5qLla37/vaVDch FdjD1sdnLu/PHRrxZooN2J3thNEkSArBh4NQVkjqmJf24Hcfov3notBzxkZsZNPProwF 3rNyvg8auUf2neIonASl1e6FxqM9nwC6GjwIcjxLf0fuGLW1R1QcdRCUw0hhSiD3ey0E no4WMnSWXN9R637giv4UWJrDKfn1zGkXlSTXDD5QMH5w8wyX0SBDVmbtGAExwMGzpArz sAkg== X-Gm-Message-State: AOAM533zBdInvmhQHib6Bvkt7V5nR+gSIDg2zKSbsE9NaXNRNtFfhghc kWia55lDoMtE1aGRwsu0WtYO2JOq60V0w7SlSDJErsRmz8yTvXbWzmTR2RWRHc/gaDk0NrRVrID 06JzeMey1RJvnBTLW/AsBsJAV X-Received: by 2002:a05:600c:3641:: with SMTP id y1mr123174wmq.44.1644582434745; Fri, 11 Feb 2022 04:27:14 -0800 (PST) X-Received: by 2002:a05:600c:3641:: with SMTP id y1mr123141wmq.44.1644582434492; Fri, 11 Feb 2022 04:27:14 -0800 (PST) Received: from [192.168.1.102] ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id t18sm22645638wri.34.2022.02.11.04.27.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 04:27:14 -0800 (PST) Message-ID: <5b451266-0217-fc4c-794b-453c4e6439f6@redhat.com> Date: Fri, 11 Feb 2022 13:27:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 3/6] drm: Add driver for Solomon SSD130x OLED displays Content-Language: en-US To: Geert Uytterhoeven Cc: Andy Shevchenko , Linux Kernel Mailing List , Linux Fbdev development list , Maxime Ripard , Daniel Vetter , DRI Development , Thomas Zimmermann , Sam Ravnborg , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= , Daniel Vetter , David Airlie , Lee Jones , Maarten Lankhorst , Maxime Ripard , Thierry Reding , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Linux PWM List References: <20220211091927.2988283-1-javierm@redhat.com> <20220211091927.2988283-4-javierm@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello Geert, On 2/11/22 13:23, Geert Uytterhoeven wrote: [snip] >>>> + if (IS_ERR(bl)) { >>> >>>> + ret = PTR_ERR(bl); >>>> + dev_err_probe(dev, ret, "Unable to register backlight device\n"); >>>> + return ERR_PTR(ret); >>> >>> dev_err_probe(dev, PTR_ERR(bl), "Unable to register backlight device\n"); >>> return bl; >>> >>> ? >> >> No, because this function's return value is a struct ssd130x_device pointer, >> not a struct backlight_device pointer. > > Hence > > return ERR_PTR(dev_err_probe(dev, PTR_ERR(bl), > "Unable to register backlight device\n")); > > ? > Thanks, that would work. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat