Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4041331pxb; Fri, 11 Feb 2022 13:44:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC3bm2plb/pCBB0h2hh4NhYXF2wT/0NcgWKXdCQ2imhkY4TI1/3UAb5v8sxk0ZCOWX2kQU X-Received: by 2002:a05:6402:354c:: with SMTP id f12mr4162725edd.210.1644615894626; Fri, 11 Feb 2022 13:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644615894; cv=none; d=google.com; s=arc-20160816; b=AasmhzRzi9QbV9Whd3E5i9kDvNsqfi5e6SjYyhiN9kpp6Bi93/lPKCGhcLEK6rMhzO o5gxb+1IeDetPXXK76ILE40vFxPPPPCND0XWKKhsqm8Qf1UHLvJBhwJUedeF0BfYfUoz Chw3H3vOla4c+RHaM8Zc+WhfaLTvpSoE1Y4TyBRZoQ5hOzE5g4CqnvjoDYazADhnlvm7 tDq7/h3SJCiYagYoFqx8dDhlkLw1zGjq0FymZpuEMJ+VKfLE+48VrpLI8KgHJHbhgHz0 ZCgzASJczhRRm3/ThEVsEX7CCH9EBZWmiXv65xXbDtQwpECVAVLPM7MpJhUcamVTKRZ0 9rqw== 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; bh=Sjk1d99Bi6DMu1w/ZtC6Jgj+o43T7072qer7CkYT+IA=; b=io1r66vxqGT6Tyi33tzcSOHmKHXNnfL+RtQi3jQyqkQ75K3R8ea3zp4wQIgXp6E+yx 19YOg+jA3zuzWXNEt+IuEHGhw7ulOsr9ZRTD7Dyvyp+b0hrzK3UBT+Qh0Mkbh7ZURika r0eR4fXvtKp8gbNxDeoHjngtzeaXzpaiaE2JCr2Eoj3USre6YwG8i4AsFrv3E+03DT9i D+xp9Xj5pzUZhTM5Yc3paJrbU5WChnCJN5bgb6tcD18dE56Sj9awODqiMENWTt65VeCx jQFgLHMEdhihXeF0rzx/dSZiSAczhVnqnVQqANnenXbXhxVpVVHrPf6RIRwo0OPEwXGm kW2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne21si17861821ejc.816.2022.02.11.13.44.30; Fri, 11 Feb 2022 13:44: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349946AbiBKMYK (ORCPT + 99 others); Fri, 11 Feb 2022 07:24:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiBKMYI (ORCPT ); Fri, 11 Feb 2022 07:24:08 -0500 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E94B5DC3; Fri, 11 Feb 2022 04:24:07 -0800 (PST) Received: by mail-vs1-f52.google.com with SMTP id u134so5221540vsu.8; Fri, 11 Feb 2022 04:24:07 -0800 (PST) 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=Sjk1d99Bi6DMu1w/ZtC6Jgj+o43T7072qer7CkYT+IA=; b=IDABzAEuvUOqXcg6I85tbruXJ19fIP61nHjenawqclCfSdCmqPTMNw/3hr2NW0fSHS ImFmewrguVdCj9iXeA/nAUwjeTLNckHcpJoKYpej2DaXMETwrx7kUD6URnuQstRcUr/w KiKqcuWY5M2QcwJkVag29Lkqq7EQS9lmvPzkalau29ucOaM8l13pyiM6zEYXorVGuu1I UmtHHiqzzQRT48QecoiaX4dmTxWIiCahwZ3lmDGBbxgCi2E0JIgsbmGcFB3mvKzVUYsq yWtEIoMoqtAFNKERrMj2lmBq1EKAxOyBEWIo7wAyrDLdA+dehdCR0So8N6+BknmrOUfT tZPQ== X-Gm-Message-State: AOAM532H3N22AfzrYdtCKIjoHVPm2IXXejYiypJIgLVgJmSM8AUqac3i i3JD0H0kl6tR0aa7Cpsu9CqngZbP2OUf7w== X-Received: by 2002:a67:d704:: with SMTP id p4mr405397vsj.4.1644582246736; Fri, 11 Feb 2022 04:24:06 -0800 (PST) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com. [209.85.222.48]) by smtp.gmail.com with ESMTPSA id i17sm146214vkk.35.2022.02.11.04.24.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 04:24:06 -0800 (PST) Received: by mail-ua1-f48.google.com with SMTP id g18so4602748uak.5; Fri, 11 Feb 2022 04:24:05 -0800 (PST) X-Received: by 2002:ab0:384c:: with SMTP id h12mr396518uaw.122.1644582245661; Fri, 11 Feb 2022 04:24:05 -0800 (PST) MIME-Version: 1.0 References: <20220211091927.2988283-1-javierm@redhat.com> <20220211091927.2988283-4-javierm@redhat.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 11 Feb 2022 13:23:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/6] drm: Add driver for Solomon SSD130x OLED displays To: Javier Martinez Canillas 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=2DK=C3=B6nig?= , Linux PWM List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Javier, On Fri, Feb 11, 2022 at 1:06 PM Javier Martinez Canillas wrote: > On 2/11/22 12:33, Andy Shevchenko wrote: > > On Fri, Feb 11, 2022 at 10:19:24AM +0100, Javier Martinez Canillas wrote: > >> This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon > >> OLED display controllers. > >> > >> It's only the core part of the driver and a bus specific driver is needed > >> for each transport interface supported by the display controllers. > >> + bl = devm_backlight_device_register(dev, dev_name(dev), dev, ssd130x, > >> + &ssd130xfb_bl_ops, NULL); > >> + 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")); ? 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