From patchwork Tue Jan 29 08:44:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1032597 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="luLynmjS"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43pg6d6bbYz9sDr for ; Tue, 29 Jan 2019 19:44:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727981AbfA2Ioz (ORCPT ); Tue, 29 Jan 2019 03:44:55 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54674 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727968AbfA2Io1 (ORCPT ); Tue, 29 Jan 2019 03:44:27 -0500 Received: by mail-wm1-f67.google.com with SMTP id a62so16828801wmh.4 for ; Tue, 29 Jan 2019 00:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oFYrT2wnMCaEZTFTRohnQPMYE3Q3Qh5QyDn+YPY7eC4=; b=luLynmjSgmxhjno+ghspWTDkEw4fn3ucg4QWzyQSRZgMJUXCVFXp/jx+TPHborJqUW YoUZlaJtpHdZnVh2f5oagC06B5RsojUpskYnsjBJE55/z4V1V3tZL1VkA0QN0gccjc2e q/vbGtK4H+RMs9y/n9adtV5RFBMGqCE4ynsjUFZHBtucDKCWb9toqXGJuzug0LM5H4gW lPRDwiDhQgX2a2OxEKUmdtdp4GL4dTR6GVXTmOvJOib+PY6M3mQdCCIDhz7Jr7icS+Dh mo/Ckt7K0Kw2NGV624Dk3z1zTXiI8+tjcV1JklNaJieuy5+ywzeCTWtUr0i0f7+cYSDg Ttrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oFYrT2wnMCaEZTFTRohnQPMYE3Q3Qh5QyDn+YPY7eC4=; b=d5T6M9vgjgqNZeahAFfzyUB3bwTtzgfuwKtlAeF50QQ9lXfY6FYdiwdjwAaNkFWHei UmQDJca7NKwdqlQOKIX8idR0igpz7WCf5dFaDX7c12cVVzfOf3pVQNnKwyT2FAohnfH3 Fe5MrwtcaheXvzNdI4gf9N/5x2tDnS3C/WQ1Aul77yQyFYSmUuxEBsZ9T7dw8r7mYv+S 9YPUKUYsI0LTgn+nx1oOwyAZRGEnmS0jz7wkRQUok1Gp1bsg6dOnCIpI4gqnXFowsV/e GQ2ka7Mlw1CUeIlP57T3ibvAQBvn5VMhubFFyh9Q/19zzq4k7j1AzerQi0bHkY4SKNDh fZDw== X-Gm-Message-State: AJcUukdf6Lb1SToTxMsdusPebdaTeZm0W0WiQB2eGrn3Pb2rVIMWj8Cg VSNReJfpR0QQ+jYBrcbsb0/3dA== X-Google-Smtp-Source: ALg8bN7A1Sc1cfxBCtiCvPa6pMMq1FAWwAEjKba+JVQvJtpGDEZsLLL1h7wiIbO1I0xjJ35JVp2tCw== X-Received: by 2002:a1c:b1d5:: with SMTP id a204mr21301315wmf.32.1548751465616; Tue, 29 Jan 2019 00:44:25 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id c1sm3979319wmb.14.2019.01.29.00.44.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 00:44:24 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Thomas Gleixner , Marc Zyngier , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?b?w7ZuaWc=?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 6/9] gpio: mockup: don't create the debugfs link named after the label Date: Tue, 29 Jan 2019 09:44:08 +0100 Message-Id: <20190129084411.30495-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190129084411.30495-1-brgl@bgdev.pl> References: <20190129084411.30495-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski User-space tests no longer use it and we're breaking the interface anyway. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 1c945c967f60..0317917a3678 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -234,7 +234,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev, struct gpio_mockup_chip *chip) { struct gpio_mockup_dbgfs_private *priv; - struct dentry *evfile, *link; + struct dentry *evfile; struct gpio_chip *gc; const char *devname; char *name; @@ -247,10 +247,6 @@ static void gpio_mockup_debugfs_setup(struct device *dev, if (IS_ERR_OR_NULL(chip->dbg_dir)) goto err; - link = debugfs_create_symlink(gc->label, gpio_mockup_dbg_dir, devname); - if (IS_ERR_OR_NULL(link)) - goto err; - for (i = 0; i < gc->ngpio; i++) { name = devm_kasprintf(dev, GFP_KERNEL, "%d", i); if (!name)