From patchwork Mon Dec 16 12:29:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 11294047 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3F7C112B for ; Mon, 16 Dec 2019 12:30:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB1BA21775 for ; Mon, 16 Dec 2019 12:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727733AbfLPM3x (ORCPT ); Mon, 16 Dec 2019 07:29:53 -0500 Received: from sauhun.de ([88.99.104.3]:39828 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727665AbfLPM3v (ORCPT ); Mon, 16 Dec 2019 07:29:51 -0500 Received: from localhost (p54B33297.dip0.t-ipconnect.de [84.179.50.151]) by pokefinder.org (Postfix) with ESMTPSA id 7053A2C2D92; Mon, 16 Dec 2019 13:29:50 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] input: replace i2c_new_probed_device with an ERR_PTR variant Date: Mon, 16 Dec 2019 13:29:48 +0100 Message-Id: <20191216122950.3613-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org In the on-going mission to let i2c_new_* calls return an ERR_PTR instead of NULL, here is a series for this subsystem converting i2c_new_probed_device() to the newly introduced i2c_new_scanned_device(). Based on v5.5-rc1 and build tested. Please apply via your tree. Thanks, Wolfram Changes since RFC: * use a local variable and populate the private struct only on success (Thanks Dmitry!) * rebased to v5.5-rc1 Wolfram Sang (1): input: mouse: convert to i2c_new_scanned_device drivers/input/mouse/psmouse-smbus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)