From patchwork Sun Jun 25 16:27:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13292053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65DB7EB64DC for ; Sun, 25 Jun 2023 16:28:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbjFYQ20 (ORCPT ); Sun, 25 Jun 2023 12:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbjFYQ20 (ORCPT ); Sun, 25 Jun 2023 12:28:26 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE02D2 for ; Sun, 25 Jun 2023 09:28:24 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9741caaf9d4so194381566b.0 for ; Sun, 25 Jun 2023 09:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687710502; x=1690302502; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AhMc+nxOeeYfPI6LH+23GF4WjZTIppk4w21bXTn1i6k=; b=uqVIEWk9mXUl3tPmf96YMRhOYSC6ezjzeSdSBuHds+lRnYs/EGaceTAXVxQy+bZu9y QNjSbNeUU+Ho/3KsZrBX4XT0Vk1Wkv/VqrFzgGmLHQk1BBUt7k+7MpFs0F55GR6nFK98 9uSZx75DA8hKpGgkY8Dar3mQNc+HfulYzJhkoxBNfVsgqdmTaI6VQNl7Y9Txpbn7z8ys GUGk+WuBC1JKYuUgw9v+sKGBeygcneRy1zCXElLnnq1w70PeR4nhZ+UJnjIC5NwjIj95 zafkdznKqBB28vTQAne2h7+Z7TayS6MZZNXShL8IhBMjlCSjdBqRzLh9elzulwZ+cMPa OMUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687710502; x=1690302502; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AhMc+nxOeeYfPI6LH+23GF4WjZTIppk4w21bXTn1i6k=; b=BoJVlttWdUQmIeXmUEloaD25CqJJaaRdMd3wdEIHx7l0qUtHvQFl+QLYW21Mfxg5x4 K9LLKmFlJBQpDB1eV5QW2RP80BPEd56eL8ju4kYe9Jc7olAGIjqrZSrTpDfztESwYQzl Q66GU36cl6xyZ/5ZcVbr/p5PRrGVb0BxH1qqDdzaGeggK1XudYmM1rjMilJxA6DXgAOj B5yQIQ7FeJ7+n8z23GbMAEtOGABVCCu5JXZsuWSoS+YQluArQKbFP7/EYK6FxM5KP6m9 2j4qxSusiJqJmhCSBm/5hUI196a89EJ1T0HhhAv0lS3ZBRBi0b/ZjvYE9fVwEWKiJwV9 SHTw== X-Gm-Message-State: AC+VfDwFIDm0/UACp5uiHCjgc7Qi0LnWh+oAT1GO8ZZlQQ++utxm22dE kZSDwkONHqzOjkiiSa7aNh70wA== X-Google-Smtp-Source: ACHHUZ58ULOzDOJCexuPb2LZkzug6PxFwG0fGJFHGbNRaGPX6JktTn/Hnhut++sDtTqn1YFIlgUk1Q== X-Received: by 2002:a17:907:2682:b0:977:4b64:f5e8 with SMTP id bn2-20020a170907268200b009774b64f5e8mr23641312ejc.57.1687710502339; Sun, 25 Jun 2023 09:28:22 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id ec10-20020a170906b6ca00b00982be08a9besm2277731ejb.172.2023.06.25.09.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jun 2023 09:28:21 -0700 (PDT) From: Krzysztof Kozlowski To: Dmitry Torokhov , Hans de Goede , Linus Walleij , Bastien Nocera , Sangwon Jee , Eugen Hristev , =?utf-8?q?Mika_Penttil=C3=A4?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Andi Shyti , Andy Shevchenko , Krzysztof Kozlowski Subject: [PATCH v4 00/24] Input: Simplify with dev_err_probe() Date: Sun, 25 Jun 2023 18:27:53 +0200 Message-Id: <20230625162817.100397-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Hi, Three years ago I sent v3 of this series. There was never an anwser from Dmitry - no comment at all. Maybe after three years this can go in? It makes the code nicely smaller. Changes since v3: 1. Rebase 2. Drop gpio-keys patch as it depends on GPIO helpers and I am too bored to rebase it. v3: https://lore.kernel.org/all/20200827185829.30096-1-krzk@kernel.org/ Changes since v2: 1. Add review tags, 2. Fixes after review (see individual patches). 3. Two new patches - 26 and 27. Best regards, Krzysztof Krzysztof Kozlowski (24): Input: gpio_keys_polled - Simplify with dev_err_probe() Input: gpio-vibra - Simplify with dev_err_probe() Input: pwm-vibra - Simplify with dev_err_probe() Input: rotary_encoder - Simplify with dev_err_probe() Input: elan_i2c - Simplify with dev_err_probe() Input: bu21013_ts - Simplify with dev_err_probe() Input: bu21029_ts - Simplify with dev_err_probe() Input: chipone_icn8318 - Simplify with dev_err_probe() Input: cy8ctma140 - Simplify with dev_err_probe() Input: edf-ft5x06 - Simplify with dev_err_probe() Input: ektf2127 - Simplify with dev_err_probe() Input: elants_i2c - Simplify with dev_err_probe() Input: goodix - Simplify with dev_err_probe() Input: melfas_mip4 - Simplify with dev_err_probe() Input: pixcir_i2c_ts - Simplify with dev_err_probe() Input: raydium_i2c_ts - Simplify with dev_err_probe() Input: resistive-adc-touch - Simplify with dev_err_probe() Input: silead - Simplify with dev_err_probe() Input: sis_i2c - Simplify with dev_err_probe() Input: surface3_spi - Simplify with dev_err_probe() Input: sx8643 - Simplify with dev_err_probe() Input: bcm-keypad - Simplify with dev_err_probe() Input: bu21013_ts - Use local 'client->dev' variable in probe() Input: bu21029_ts - Use local 'client->dev' variable in probe() drivers/input/keyboard/bcm-keypad.c | 14 ++-- drivers/input/keyboard/gpio_keys_polled.c | 8 +-- drivers/input/misc/gpio-vibra.c | 20 ++---- drivers/input/misc/pwm-beeper.c | 19 ++--- drivers/input/misc/pwm-vibra.c | 30 +++----- drivers/input/misc/rotary_encoder.c | 8 +-- drivers/input/mouse/elan_i2c_core.c | 9 +-- drivers/input/touchscreen/bu21013_ts.c | 72 ++++++++----------- drivers/input/touchscreen/bu21029_ts.c | 51 +++++-------- drivers/input/touchscreen/chipone_icn8318.c | 8 +-- drivers/input/touchscreen/cy8ctma140.c | 8 +-- drivers/input/touchscreen/edt-ft5x06.c | 10 +-- drivers/input/touchscreen/ektf2127.c | 8 +-- drivers/input/touchscreen/elants_i2c.c | 22 ++---- drivers/input/touchscreen/goodix.c | 40 +++-------- drivers/input/touchscreen/melfas_mip4.c | 9 +-- drivers/input/touchscreen/pixcir_i2c_ts.c | 38 ++++------ drivers/input/touchscreen/raydium_i2c_ts.c | 30 +++----- .../input/touchscreen/resistive-adc-touch.c | 8 +-- drivers/input/touchscreen/silead.c | 8 +-- drivers/input/touchscreen/sis_i2c.c | 20 ++---- drivers/input/touchscreen/surface3_spi.c | 13 +--- drivers/input/touchscreen/sx8654.c | 10 +-- 23 files changed, 146 insertions(+), 317 deletions(-)