Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4234059imu; Mon, 12 Nov 2018 07:51:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dYgxzUQv3g+thUnZG0Zsly5OCtJEG7fuA59idio3fWRvRTs9PkrZrZLHQD7a4VYvMHVYbV X-Received: by 2002:aa7:80ce:: with SMTP id a14-v6mr1389344pfn.86.1542037889608; Mon, 12 Nov 2018 07:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542037889; cv=none; d=google.com; s=arc-20160816; b=IeUOB/oPTXh2gImb0XJEuLO5h6qzOUZ/5HtgX6bxtanY3DIvSoBhHrhZxfts9Balkz Xb6GlkvmlHddm8IDmG0mub+wTuY9Dx5Nss8nCHVWuBSv2IsRanod1XVzgaZcExxKpO9V PoSELox+E+o78+vjNX4lzhys7TCvHi5wrhPDDJELPO09G9TgCxmqfgCCaU3tuqJyo9j0 uL/Sk4elEOyVN0MPvJMPSlzdzPE8vhDxuGIPcSLlXuOWFb+KeAChgmOKn3qe+g1o1VjQ 7l7JRj1O9GhgMtaezlu19QleGW6Q6ZJA85upRBe9vIobmQaMyOq5dWlaqqM6Du5hAbTM DvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=z4pEWEwojPYfQK9B/fdcglsTA9QWwPjW7gO4YGiQHOQ=; b=q60f+E56s3TW5Z5rq8oplvdLOn97XIvTt0tir/rjrMRO/ytdPX+Vts3fnk/BMzruot pYWD9KtWvSK7trO6VXLpoN6QriWEVVun44ymqFDxuUhuQQnKhFT/wf/biiOUjrpQarP9 oqESSHjCuKOXhCo2tC43PLwNSm8rqwxQWomOlJ6Yyjnrpri8Akw8hcQHbvmkLm5kHHXK 0w3du1+PpEtd7+GctEt3530kpS82MvLf8GC7ug1pAND4+KWHJSHAxs9zAeMV2omccZYN w10+XXldgXmhzxsaGe5AlXBZz58BPzogrYoXa6DmfCuKEhd/zftR4/szJHPHSHppku82 /3rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=i4YprPeE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si18862344pld.70.2018.11.12.07.51.13; Mon, 12 Nov 2018 07:51:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=i4YprPeE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729673AbeKMBmv (ORCPT + 99 others); Mon, 12 Nov 2018 20:42:51 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:42351 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbeKMBmv (ORCPT ); Mon, 12 Nov 2018 20:42:51 -0500 Received: by mail-oi1-f195.google.com with SMTP id x63-v6so7502640oix.9 for ; Mon, 12 Nov 2018 07:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=z4pEWEwojPYfQK9B/fdcglsTA9QWwPjW7gO4YGiQHOQ=; b=i4YprPeEBELHnBq/Mj8CXbS9DPqgDHn0GVkCr5b9AAl/Tfn0zr2OF/rWq9/AbtLlKG nAcyNY61c49TxFKd3c6mmIv8V2BY8C38trCc8AuqkAef3pOV5+O57gkDz0EB1YsZ9/j7 qxjug+gcCn35g2fGz7t3BjZKyyYQH7CiaklDWT0HWDrxQgpZwCziGzlS0PdY1hGQMthz 5oG7sSIgWGsB1//71WpGmVkiS5VeuiGG260d2C4l7Y9SI8Kyc9lVqk0q+BsoCyEwkWZv dqbxweCbP9iSHp7Xzr3GUIxXZp18dNfMollQbEJ00cF48uvowlrp7pW2XExEYusbpS+y e0/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=z4pEWEwojPYfQK9B/fdcglsTA9QWwPjW7gO4YGiQHOQ=; b=GPEQbbel/kSayXUKIwvmNpfxRD6JycwO+PbNG95LUAWgbGPUBwAcVpt/htMqvhx77x 45loqwXJ3TN2+B9SAoZc4gyPrCMzMS77YcIwBieAxqpsCWU+b8KVI30Mm8wJC7mmXrWu si+fp0pmGHwnqNLb48Ap/t2Do++M92EzSEODeB/EWD2lyUZOD36RanNQRcB3djUkN96U t5RbFh6aW3LKHpIxAb3x6h/1w1tLJ/AFPHHJwMy3pO7SvEwE0iXAMRfaZgkqLlwaL7mT 2DBaZGLgb72O+D9wslsPQ82O7BfzV5z5CLtZwI8ZOP3HYXZgEUPGULUjUwhQ8Fro48Sf C5oQ== X-Gm-Message-State: AGRZ1gKGogprfanmi+sziCUDepL++93O3r9vQLapXGCNZ78pVVzsH7x3 x+53If1KBsWvNvGN0Z2TnKW3CJGFKwkD00NHRGRdNA== X-Received: by 2002:aca:55d3:: with SMTP id j202-v6mr817117oib.277.1542037742940; Mon, 12 Nov 2018 07:49:02 -0800 (PST) MIME-Version: 1.0 References: <20181112141028.10213-1-johan@kernel.org> In-Reply-To: <20181112141028.10213-1-johan@kernel.org> From: Bartosz Golaszewski Date: Mon, 12 Nov 2018 16:48:51 +0100 Message-ID: Subject: Re: [PATCH] gpio: drop broken to_gpio_irq_chip() helper To: johan@kernel.org Cc: Linus Walleij , linux-gpio , LKML , treding@nvidia.com, Grygorii Strashko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 12 lis 2018 o 15:11 Johan Hovold napisa=C5=82(a): > > Drop the broken to_gpio_irq_chip() container_of() helper, which would > break the build for anyone who tries to use it. > Which is the usual problem with APIs nobody uses... > Specifically, struct gpio_irq_chip only holds a pointer to a struct > irq_chip so using container_of() on an irq-chip pointer makes no sense. > > Fixes: da80ff81a8f5 ("gpio: Move irqchip into struct gpio_irq_chip") > Cc: Thierry Reding > Cc: Grygorii Strashko > Signed-off-by: Johan Hovold > --- > include/linux/gpio/driver.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h > index 2db62b550b95..21bff1f14fde 100644 > --- a/include/linux/gpio/driver.h > +++ b/include/linux/gpio/driver.h > @@ -166,11 +166,6 @@ struct gpio_irq_chip { > */ > void (*irq_disable)(struct irq_data *data); > }; > - > -static inline struct gpio_irq_chip *to_gpio_irq_chip(struct irq_chip *ch= ip) > -{ > - return container_of(chip, struct gpio_irq_chip, chip); > -} > #endif > > /** > -- > 2.19.1 > Reviewed-by: Bartosz Golaszewski