From patchwork Thu Aug 1 10:20:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 170370 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5221782ile; Thu, 1 Aug 2019 03:20:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnuSf3zIjDQg5Eae/ZQwVZ5IekOZk/gxSKbnLIuTU1H7k5SNkdJ4Y0IKWneLYLNPXQpJh8 X-Received: by 2002:a17:90a:a407:: with SMTP id y7mr7807373pjp.97.1564654834257; Thu, 01 Aug 2019 03:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564654834; cv=none; d=google.com; s=arc-20160816; b=GjsNVVgPQF2r3g/S+HZXJTqHd4NPwBZTboNdmTBMQ9GJseRSFX8Yx2nE4W1CaceoTA gAqK4bzv1DnkUkYYdZrfHXvT0DJagSJAeAtLGxIqXGZUY9iJHE4Nyrap49E+yBIpmYRU bELxbzNZdLuXll89FsSvsHhzTIynF/mYoloCnDwaC1EoRbXQdPHCyb2qi8/1dN2YPs4N iHWw9rECQcUV4b6UCob+lG+SwXmG/3hk7y80iHBNq3ea4vMxV5TqXpBbCLzLH3a6lcMM h2T+an+2q11m4VpiTRzmmpj1RU/fH8zoSlor7ENEi5A0KSqCiiu6X69Gyfd6o9dXvCZE tXsA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iPOy9zRpBWvwsVOs1ov4/JrMHU1E6nISPXyh4Jjsxxw=; b=qYtIHJnN5hGLoLH/YOsy3LvyiiZHHfInhN7QVEEkAoocV2HlyPEtmkD1I3booSvDZL oFRUoonIfL8TSbTb6eTcNLGsFS3Qj7kCW/J8cd0EQil4OFg9WokOG7G2yXf14+FkazcQ 3EZNrIzqVVv07QT41zYh5akPRTjVYcFzzRNUSlGgjYKtXTM+rT1CACkaKV4wGni5vyTB cXZ9Hfzf/ei++CyCheUeZ8G25Aw0B1sc+/gQmsZJvEzriVVZR2Hk4nRpNWh4zKqiWunG H2HHPTN8/gWC0hOQc2UR588IsZW/a8YfzGn19qxX/SaV2C2o1iUrUYoyJBg9aiu7evWK Gdgw== ARC-Authentication-Results: i=1; mx.google.com; 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 r33si40101665pgm.371.2019.08.01.03.20.33; Thu, 01 Aug 2019 03:20:34 -0700 (PDT) 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; 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 S1730701AbfHAKUc (ORCPT + 29 others); Thu, 1 Aug 2019 06:20:32 -0400 Received: from foss.arm.com ([217.140.110.172]:33576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbfHAKUc (ORCPT ); Thu, 1 Aug 2019 06:20:32 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A3311570; Thu, 1 Aug 2019 03:20:32 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D3ACB3F575; Thu, 1 Aug 2019 03:20:30 -0700 (PDT) From: Suzuki K Poulose To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, lkp@intel.com, Suzuki K Poulose , Mika Westerberg , Wolfram Sang Subject: [PATCH 1/3] i2c: Revert incorrect conversion to use generic helper Date: Thu, 1 Aug 2019 11:20:24 +0100 Message-Id: <20190801102026.27312-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190801061042.GA1132@kroah.com> References: <20190801061042.GA1132@kroah.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch "drivers: Introduce device lookup variants by ACPI_COMPANION device" converted an incorrect instance in i2c driver to a new helper. Revert this change. Reported-by: Stephen Rothwell Cc: Mika Westerberg Cc: Wolfram Sang Cc: Greg Kroah-Hartman Signed-off-by: Suzuki K Poulose --- drivers/i2c/i2c-core-acpi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c index bc80aafb521f..f60f7a95d48e 100644 --- a/drivers/i2c/i2c-core-acpi.c +++ b/drivers/i2c/i2c-core-acpi.c @@ -357,7 +357,10 @@ static int i2c_acpi_find_match_adapter(struct device *dev, const void *data) struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle) { - struct device *dev = bus_find_device_by_acpi_dev(&i2c_bus_type, handle); + struct device *dev; + + dev = bus_find_device(&i2c_bus_type, NULL, handle, + i2c_acpi_find_match_adapter); return dev ? i2c_verify_adapter(dev) : NULL; } From patchwork Thu Aug 1 10:20:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 170372 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5223632ile; Thu, 1 Aug 2019 03:22:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpZaZg8eWosiEGYy0JNOSSNysrg1GARoB5z77HG0fbOIyt6lwMJILUw6fZ4klGEOx7kmPH X-Received: by 2002:a63:eb06:: with SMTP id t6mr7467114pgh.107.1564654840916; Thu, 01 Aug 2019 03:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564654840; cv=none; d=google.com; s=arc-20160816; b=ers3f9VPXrf+dI+ihF0X92V4GwABptTIcuyz55k1gdEzJigEHbrvWaZkJ0YnWBrQmy 5nftG0+auk1XtQqkIkSAdjwrFZYGK2097FXXpFInJss3vOCUrQUYvnpmJCm3rhmjIHi3 03SU4+4belN2pcGn8nHtrY2PZJWH5yKyMuBiRdyFUZtCEBz5svu1cc2y1j4lu90Rs2IR Vn+2gXpBUejiMPoKpwJtNzMk963JhpzDjkhvvJ3OU1t5JjHgCxOrDcyiyq+3F9K0Le/2 IbGcLoBFUynRQR4ougtLHZHrJOmMO6GJdtBPO8F8r8ZWDgwOUQwMkQV5A1BolzbhJ1IC OqFQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8IKC8FnwA9/RhrJThPOajYYGscUOUaSaAh17cys7RNs=; b=LiWhOoOd56g712eA0TI50PGpWW9RVw8KXUb1uTxCXNP9crlhCWcqCnbXMWO3GMXMlv oSzph3lD6wntIzcKjwQmeg6hTiQ5YtNCg2gCT7Fyr4uiLWAVtILraP7EDzt0iAxxkK9k +6SAkNqGqmJ0cJQ27TBdlR4iGcvnJLrjWjqQQ7gHrl008ZGLMeR1a/18biJQGKtpbOcH Y29WYXb+iGEA/MTgz4hX1KQ515agMt8U8C5AD5MzvTauu6W+4+bhaeTq/VT6Fg43u+0/ 1BsIXxVNhiki7ZKU72Ipmd5zZB+a5cduiC6UNv3gp2IlSYRHwm1csHMHvih+ZgQ6xyHD WbWA== ARC-Authentication-Results: i=1; mx.google.com; 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 r33si40101665pgm.371.2019.08.01.03.20.40; Thu, 01 Aug 2019 03:20:40 -0700 (PDT) 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; 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 S1730777AbfHAKUg (ORCPT + 29 others); Thu, 1 Aug 2019 06:20:36 -0400 Received: from foss.arm.com ([217.140.110.172]:33588 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbfHAKUd (ORCPT ); Thu, 1 Aug 2019 06:20:33 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D1FC1597; Thu, 1 Aug 2019 03:20:33 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3CB223F575; Thu, 1 Aug 2019 03:20:32 -0700 (PDT) From: Suzuki K Poulose To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, lkp@intel.com, Suzuki K Poulose Subject: [PATCH 2/3] drivers: Fix typo in parameter description for driver_find_device_by_acpi_dev Date: Thu, 1 Aug 2019 11:20:25 +0100 Message-Id: <20190801102026.27312-2-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190801102026.27312-1-suzuki.poulose@arm.com> References: <20190801061042.GA1132@kroah.com> <20190801102026.27312-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a typo in the comment describing the parameters for the new API, which triggers the following warning for htmldocs: include/linux/device.h:479: warning: Function parameter or member 'drv' not described in 'driver_find_device_by_acpi_dev' Reported-by: kbuild test robot Cc: Greg Kroah-Hartman Signed-off-by: Suzuki K Poulose --- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/include/linux/device.h b/include/linux/device.h index 26af63847ca7..b17548b94c3e 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -467,7 +467,7 @@ driver_find_device_by_fwnode(struct device_driver *drv, /** * driver_find_device_by_devt- device iterator for locating a particular device * by devt. - * @driver: the driver we're iterating + * @drv: the driver we're iterating * @devt: devt pointer to match. */ static inline struct device *driver_find_device_by_devt(struct device_driver *drv, From patchwork Thu Aug 1 10:20:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 170371 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5221877ile; Thu, 1 Aug 2019 03:20:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqydDCRzVzYhgOQqfaPiYBqQoeEmsJX5zHjJCVX8/FX3BU7g34/wLQc+X32VNQye9UM4KCbi X-Received: by 2002:a63:2744:: with SMTP id n65mr104868095pgn.277.1564654838826; Thu, 01 Aug 2019 03:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564654838; cv=none; d=google.com; s=arc-20160816; b=L9vYG2+DZiUoluR2bx4bSaM5xpCGefQgBfZBG8M6QbSuCuPcqgO/cqRNbErTkB+kqw DOwpCkG6NCp5zPVhQvhPOaQzMC8UDuixv3ja4d/mhEaTL3Mjye6zw/y7HorSWpKjbpdQ 8AzM+WzLX+H2UhxwsHFxOJ1YAfKhw1YbR+PfHTH46D2hBYebCQ/yvIlKwc93LDP34i+2 deVibHMaxPNhONJ0Gn4cqGC5aU90R6ngpl1dN3tUuw7aPzpu5MC5iU+lHrziYT4gzj0L yX3w678xMNHFQ8M6t8yTocKJ92rxsrpkUOUwc0wOYYpidlw99T+UcH/zQfIKvPK8SR9z uGDw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W49N15x4Dx+n8DLj2U6LiNXqlJd6hQrqxVCc3aoRwvc=; b=lnydkpuJwwsK5s3R7PwZtf3QHuhMukM1W6V3q7DR/bnuerMbbQT5iUbufo3FrbR7MT CpnqtgqXOQBkiMEEBylFqILmKtoIc4RckeXFqvtinz0RDmHe5fC5+eF27ctchdRlgRUf 1d4zIts+WLP2OzAA960wjijANrVvJy+s81VO9eyydMWFRToWiXAl45MLXJiKaCvLUWkr CSQrhOkk2JqOy5vQ4aQdKg14x2S4tguQ0XaPAPvH8gmhfEo2lKVl6W2bYrttmaLj3Zw6 n9mSu7sLF5IM3XTc+Sfyf6DvlK+PP0IvV7d3dfRFg39WjRvCarzb7MAfUQ7rn8pZuUsF ff8g== ARC-Authentication-Results: i=1; mx.google.com; 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 r33si40101665pgm.371.2019.08.01.03.20.38; Thu, 01 Aug 2019 03:20:38 -0700 (PDT) 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; 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 S1730815AbfHAKUh (ORCPT + 29 others); Thu, 1 Aug 2019 06:20:37 -0400 Received: from foss.arm.com ([217.140.110.172]:33606 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730713AbfHAKUe (ORCPT ); Thu, 1 Aug 2019 06:20:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 526C115BF; Thu, 1 Aug 2019 03:20:34 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6082E3F575; Thu, 1 Aug 2019 03:20:33 -0700 (PDT) From: Suzuki K Poulose To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, lkp@intel.com, Suzuki K Poulose Subject: [PATCH 3/3] drivers: Fix htmldocs warnings with bus_find_next_device() Date: Thu, 1 Aug 2019 11:20:26 +0100 Message-Id: <20190801102026.27312-3-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190801102026.27312-1-suzuki.poulose@arm.com> References: <20190801061042.GA1132@kroah.com> <20190801102026.27312-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the parameters for bus_find_next_device() to avoid htmldocs build warnings as reported below : include/linux/device.h:236: warning: Function parameter or member 'bus' not described in 'bus_find_next_device' include/linux/device.h:236: warning: Function parameter or member 'cur' not described in 'bus_find_next_device' Reported-by: kbuild test robot Cc: Greg Kroah-Hartman Signed-off-by: Suzuki K Poulose --- include/linux/device.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.21.0 diff --git a/include/linux/device.h b/include/linux/device.h index b17548b94c3e..ea0238c73a9c 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -229,6 +229,8 @@ static inline struct device *bus_find_device_by_devt(struct bus_type *bus, /** * bus_find_next_device - Find the next device after a given device in a * given bus. + * @bus: bus type + * @cur: device to begin the search with. */ static inline struct device * bus_find_next_device(struct bus_type *bus,struct device *cur)