From patchwork Mon Feb 18 09:47:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1043843 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="avOMrMbu"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 442zZq12m6z9rxp for ; Mon, 18 Feb 2019 20:48:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729831AbfBRJsO (ORCPT ); Mon, 18 Feb 2019 04:48:14 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36131 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729809AbfBRJsN (ORCPT ); Mon, 18 Feb 2019 04:48:13 -0500 Received: by mail-wm1-f66.google.com with SMTP id j125so16379363wmj.1 for ; Mon, 18 Feb 2019 01:48:12 -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=03DPhzkzBjEgdOWVhFdZb0AzmHi0UfZRp68bha7kwZI=; b=avOMrMbuCc3zQ5yDGbQl755sCnzSjr5XiNqHgwx6XCW0pzYOzowMFYmayABTwkORDq 5c9TYUFiU/TddqQzc0CT7yrOKB/vsOckRfqjdOGexyjPucMMOFrqpiia3i7yu0ireEkI hs751FnCfK9qcjW1ZXGLCCWTjN0Md5ti2jCBD81L7nzsz7cK/oA/smZijQhB9P4od7nf E+XUOPuv2GyllGKixDC3y/yMLyyjY+ULSsZBESZfvDIVV1ux5zY3805YMZuNDvxDNCIy WVvICf4k2qw7rvUrov1eeZw3zQEEZTDVKxad9pL9qBzMlb3LOlZ81gp5ZVogkgU42wBi JPJg== 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=03DPhzkzBjEgdOWVhFdZb0AzmHi0UfZRp68bha7kwZI=; b=CS2vMzTWFM4i74hdXTvQfW4U4igdXg4GyAmFKWrepJLKefBk8EQmlSStMMZxO8/gom sGoi8yv3+qWfO7QbQQfB+1OKUje5DedyW0zNCK46f7hfFQkVOqGEcgTNhr7bVV/qBWyh poQUfcLERrG3sf5GCYYZa2nNJ+Eo5qk2q9MBKk8hEnCGQzgz/K3Fx/ZSv0cyZUDlFzXF bpUSUcKe1VRsVAIJ6KQ5WI5odw1P3X6gaFG6jZMMDsklqW9pgF4myNRyNwCpREHYpq0V WAZxheHSOuQ2D/AW4gp4OLDxWufEU9n5COT2guQbfgLMH3GuIooiuE2u0/TFqo6yV83f 5SYw== X-Gm-Message-State: AHQUAuaRY3Okist/ggkqUpDim9vFTT7vGUtG9oUnM5jCpwG9AMXigiIh Peb7vTo5Ru988t7IG3LUUDSa9g== X-Google-Smtp-Source: AHgI3IYcHiIuh+bvyHmYlW6gWqYQfsUNbq/NiDtO2C+vl2Sy9ORdFCGgzqkrJA0ci3oCqKAO+slm0A== X-Received: by 2002:a1c:7312:: with SMTP id d18mr15432479wmb.10.1550483292067; Mon, 18 Feb 2019 01:48:12 -0800 (PST) Received: from localhost.localdomain (aputeaux-684-1-7-43.w90-86.abo.wanadoo.fr. [90.86.124.43]) by smtp.gmail.com with ESMTPSA id u15sm17582974wmu.17.2019.02.18.01.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 01:48:10 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , =?utf-8?q?Uwe_Kleine-K=C3=B6?= =?utf-8?q?nig?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/6] gpio: mockup: don't create the debugfs link named after the label Date: Mon, 18 Feb 2019 10:47:56 +0100 Message-Id: <20190218094759.14545-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218094759.14545-1-brgl@bgdev.pl> References: <20190218094759.14545-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)