{"id":814910,"url":"http://patchwork.ozlabs.org/api/1.2/patches/814910/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-i2c/patch/20170918130346.3886-1-jjj@gmx.de/","project":{"id":35,"url":"http://patchwork.ozlabs.org/api/1.2/projects/35/?format=json","name":"Linux I2C development","link_name":"linux-i2c","list_id":"linux-i2c.vger.kernel.org","list_email":"linux-i2c@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170918130346.3886-1-jjj@gmx.de>","list_archive_url":null,"date":"2017-09-18T13:03:45","name":"[v4,1/2] wire: export w1_touch_bit","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"6bafd2d9ace022200d7c74b6b0cd3869b006cc46","submitter":{"id":69487,"url":"http://patchwork.ozlabs.org/api/1.2/people/69487/?format=json","name":"Jan Kandziora","email":"jjj@gmx.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-i2c/patch/20170918130346.3886-1-jjj@gmx.de/mbox/","series":[{"id":3640,"url":"http://patchwork.ozlabs.org/api/1.2/series/3640/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-i2c/list/?series=3640","date":"2017-09-18T13:03:45","name":"[v4,1/2] wire: export w1_touch_bit","version":4,"mbox":"http://patchwork.ozlabs.org/series/3640/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814910/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814910/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linux-i2c-owner@vger.kernel.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwmRH18Gxz9s7F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 23:03:55 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1754471AbdIRNDx (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tMon, 18 Sep 2017 09:03:53 -0400","from mout.gmx.net ([212.227.17.21]:51633 \"EHLO mout.gmx.net\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752112AbdIRNDw (ORCPT <rfc822;linux-i2c@vger.kernel.org>);\n\tMon, 18 Sep 2017 09:03:52 -0400","from janskasten.janskasten.localdomain ([79.242.230.231]) by\n\tmail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id\n\t0LyB6P-1dNbEs0yGb-015YR8; Mon, 18 Sep 2017 15:03:47 +0200"],"From":"Jan Kandziora <jjj@gmx.de>","To":"GregKH <greg@kroah.com>, LKML <linux-kernel@vger.kernel.org>","Cc":"Evgeniy Polyakov <zbr@ioremap.net>, Linux-I2C <linux-i2c@vger.kernel.org>","Subject":"[PATCH v4 1/2] wire: export w1_touch_bit","Date":"Mon, 18 Sep 2017 15:03:45 +0200","Message-Id":"<20170918130346.3886-1-jjj@gmx.de>","X-Mailer":"git-send-email 2.13.3","X-Provags-ID":"V03:K0:XKxMTEGhFJ1U3GW3iL7m/J8o1CcA5EUnoGeovhAKM76/BR2dt0S\n\t/XpHrgvTB7dDQFMNlBbPvjnKJbitd7yg0UqybfaZq2NFWIw4C7LYbYcB9+xtonNIQ0AitBM\n\t48mskHhfj1AZlhuFkPWtkxTWLFpGEq3iVsDbi5TdhpfQZEntwQbMq4LOEeq3RfAGS7SyZDH\n\tHCXQj9A6y/yNuM3OewP4w==","X-UI-Out-Filterresults":"notjunk:1; V01:K0:8xkWNbSMfYA=:dc6fdHtAXYAR/7qjMisHOk\n\tKaYe8PuupFFyjRt0WVPig79FxW9Ae1CWd15+mw8Zkrq9zMtXcW22aXcKK61G9ZuNrTwknDAWS\n\tOgtYfx/vkv8UY3BaKvQ7/wmrq6Cw3YGyN1aO/Bi9f9zc7zfZoBmD8M5iTVVLZjaixy7EHc6Er\n\tVr8zAduZgrLRRJZ4kcx2Ge6+aZKeI7cH5ie6RYaPfOmom0cW5CByTmcKImCabbUzBAoiutoXy\n\tIC0dbUTq1UOD0xyFoORskPksm7I5TQhfPC/VXACG5k2R6hspM2R755/pWVUfXoiG04A1JwOw4\n\tnVnXxQtNzEaBTk5crG7bZJQWmkVdlzq+rxVpKQFGnbLBMymsJK7USSouX/JbEP11X555hz79v\n\toCI87Mdyvaou/WJUus/6O67ndcP4DZEmK9+hpXKASkV6124Ef9+z63p2ie0Aum0gdmbdoyHrT\n\tH6JPmQCXa8SgNJ3P1mM5CgVvrAXIODSvwDAAGVN+AYWf6vRdqJrPYlBX8vo3LKr/XXz17gq16\n\terIPn2GUSYMOB/ZljMgCa3oQ40HTuaxQgg+TqYxonKicLI+ZwlaNiYJjkNZruzChIVIc3IzM9\n\tR+m8dvlFurU84L4vjgJaCrwe29ku/tUncumk1lWHfY9gtthmngT57/r+jCm8yOqMsTAi/G71Z\n\tLGuy26SOGM2fH+1jAbdrjQ2GCFdWKROn0br49JE8Es5NDTUHmjwQ0/s2vUFzeaTY4sjs5sRax\n\t6msZn8A9LurKzFs3U4YZJoucPgRrif5bEIh5O8W+CF02B/f//0jLTBXs+59+cP5J3j77csfK+\n\tuLeOswjg2lfG+tBw1cp0Qli6HUmOQ==","Sender":"linux-i2c-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<linux-i2c.vger.kernel.org>","X-Mailing-List":"linux-i2c@vger.kernel.org"},"content":"The w1_ds28e17 driver from the next part of this patch needs to emit\nsingle-bit read timeslots to the DS28E17. The w1 subsystem already\nhas this function but it is not exported outside drivers/w1/w1_io.c\n\nThis subpatch exports the w1_touch_bit symbol with EXPORT_SYMBOL_GPL,\nsame as the other exported symbols in drivers/w1/w1_io.c\n\nMay be also useful later for writing drivers for other Onewire chips\nwhich do single-bit communication.\n\nSigned-off-by: Jan Kandziora <jjj@gmx.de>\n---\nChanges in v4 against v3 in this subpatch:\n  - adapted to linux-4.12.0\n\nNo changes in v3 against v2,v1 in this subpatch.\n\n drivers/w1/w1.h    | 1 +\n drivers/w1/w1_io.c | 3 ++-\n 2 files changed, 3 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h\nindex 758a7a6..e7af855 100644\n--- a/drivers/w1/w1.h\n+++ b/drivers/w1/w1.h\n@@ -295,6 +295,7 @@ int w1_attach_slave_device(struct w1_master *dev, struct w1_reg_num *rn);\n int w1_slave_detach(struct w1_slave *sl);\n \n u8 w1_triplet(struct w1_master *dev, int bdir);\n+u8 w1_touch_bit(struct w1_master *dev, int bit);\n void w1_write_8(struct w1_master *, u8);\n u8 w1_read_8(struct w1_master *);\n int w1_reset_bus(struct w1_master *);\ndiff --git a/drivers/w1/w1_io.c b/drivers/w1/w1_io.c\nindex 1134e6b..4bb77a1 100644\n--- a/drivers/w1/w1_io.c\n+++ b/drivers/w1/w1_io.c\n@@ -58,7 +58,7 @@ static u8 w1_read_bit(struct w1_master *dev);\n  * @dev:\tthe master device\n  * @bit:\t0 - write a 0, 1 - write a 0 read the level\n  */\n-static u8 w1_touch_bit(struct w1_master *dev, int bit)\n+u8 w1_touch_bit(struct w1_master *dev, int bit)\n {\n \tif (dev->bus_master->touch_bit)\n \t\treturn dev->bus_master->touch_bit(dev->bus_master->data, bit);\n@@ -69,6 +69,7 @@ static u8 w1_touch_bit(struct w1_master *dev, int bit)\n \t\treturn 0;\n \t}\n }\n+EXPORT_SYMBOL_GPL(w1_touch_bit);\n \n /**\n  * w1_write_bit() - Generates a write-0 or write-1 cycle.\n","prefixes":["v4","1/2"]}