Received: by 10.223.185.116 with SMTP id b49csp1994534wrg; Thu, 15 Feb 2018 05:02:42 -0800 (PST) X-Google-Smtp-Source: AH8x227KKgHKNMB1FShg58G0gqjUM1Ooeg+7lq+Rbc4ibZxFJfCDICMIxU6R2WwXNXu4INOR7j+q X-Received: by 10.101.80.69 with SMTP id k5mr2151068pgo.435.1518699761989; Thu, 15 Feb 2018 05:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518699761; cv=none; d=google.com; s=arc-20160816; b=iU7WP5m/J438qQ1gmFD11CK5t9Wps5/LPnWs3hR7UOLe2ZoiB5Z8g8aM9dfsaEPwmq yDhoHxykovUVl++pQb5RSf0cnlQX49gDdNc4QPIOYFb5Nh6dMhK9CKRqvKSB1VC5ihr4 NB7YvI1TPSMr7tiBk/f0bgeUQUTQmqbMIcBCcusB8Vnlc2/aYdmzEAV5pP+BMunNT6TF CJxZAdsgXGz5OdFpEYXH6oJfXW/nbwnVzcRPSBalHNI9gThGY/y8aecAT9flS86ZoJmE +7jOw6Yb+K5fQs5NDKsiq3rmcT46aR5U0lrHW/s2cWAV/PxsFF8rjmKjhYwOpLeCSJJ8 xURQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=FrHU/HJz8gmYoh5knF+d6xsvXcf0/sdKXP/5vIpaOFE=; b=ZQi8w0LCRnPKkNgT3kDSRrsMqIPv50f9/yXy9uRVoa3480a9y5TQV+jwKlTfCdEpFm A41JczvSP0SZjrzl/NIeHfibCwoi4CTuXv2wXsNJYTdaGkejRiFyYEcbt+flcYj/Cldt COz0O9SbLwzvlg1hiPxkQEJFXMBIdTWwSbaOQsSyDaUfoyQhigB4K3wdu5W1l8whIi/9 OF9xwinr39wHYyhM2dJ9x6g0qstMSaQVLSBvr/+N2mRNUBGeREReZTKR/Z9hJHWiqjSM UQWCEN0O6oFSVFou0ZZOipZ+LO/j8c70/0l0PhGmky9DAmOAN6KLlZHQBM4lCpbNmto1 nOHg== 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 u24si1055794pgv.251.2018.02.15.05.02.22; Thu, 15 Feb 2018 05:02:41 -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; 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 S1031929AbeBONBZ (ORCPT + 99 others); Thu, 15 Feb 2018 08:01:25 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:49401 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030638AbeBONBX (ORCPT ); Thu, 15 Feb 2018 08:01:23 -0500 Received: from localhost ([77.190.216.181]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MFwt0-1ez0TP1nEM-00EtxB; Thu, 15 Feb 2018 14:01:21 +0100 From: Lukas Senger To: giometti@enneenne.com Cc: linux-kernel@vger.kernel.org, Lukas Senger Subject: [PATCH 1/2] pps-gpio: Avoid flooding syslog Date: Thu, 15 Feb 2018 13:59:20 +0100 Message-Id: <20180215125921.29494-2-lukas@fridolin.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215125921.29494-1-lukas@fridolin.com> References: <20180215125921.29494-1-lukas@fridolin.com> X-Provags-ID: V03:K0:1kCE4OQajyXRpMvzpTBsidbO4eQtik+bWXl7YQdvh58FPeyTLCk 3EWsxlbk/X6+PxTUjiEtKgqlX5+oKLLKnSXNHw9LLIstiuODX72Dt1X4uoSa6y2XlYx7Xq2 WbAy3ZIfZJwIigAKTyJ7Kv2ThgYV/DyFTq/Dn0yz0I+WDHQ+Pt1PFizyX8kWUJEm6KBfLJY tnOfPyVwfvuth35l0Lf2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Wbns7rzIPIk=:X7QMzjjifxbRBJqXlc0Cl4 v3GoSrV8+BTPh7W4AZoXC+vGWJi8a2ZUJUP9kVWRro4jwvPuoTAAYDxoeAc/PO3gDBU1cYyor zNXyIXPyS7woGgctCo6SKvlZPN0HQT2xCACMuYy7mCOF96R+JyvwHI58b9e7BKp0iX5Hl/WNz M6fEsUFv7VR7l2WraXIu8mk+K+X1YPMiO89iti8ua0BFDpiHQlgkKKQ/AEbNDhNP8Z5ddrUrg pWWaz8Bzj3nXeCdJyCvDf7ENg40Usqsz9A5Rflgbpx+V8NNcKGjDHdPokqxFX4nfKJ8l942Vx SBYnjI+fk7H2UtW17Gp150ZZs8f8atns2nEgzIxbHsLBWEq2eAe8R8gGiPjydupwk73EPb3fx k9jGPmkn3UJDimfjD5WpvHayO/7fuI6AqowyHwmexOAQBddcmxvodMLp8V+UbzIzkcWeyNuNI z5pg11uQYZz7YEIaMTVBV6b5SqQXbKfVqIkOwY8pMj5GKX1utHklTau1COcFMEvAhb8Sg/xrc amAum3CO6GvxM+4pthriN36lk59z12uZXU4WjbgYwp0gAbhT+Ru0jDhLWKQfbudGVZkJqVetl 1XQPiipGyghNyj6N9psktu7op2RITEjIsKdvCaekR5X7YrusbyWNiSD4YYuGryOQRK48aqUpa yV1WTy5AbjLFJIAjD/tBKz0vVx0Ahs/PYcgc3uwXXDD10JDpAzpb4abuGyt4y/LIsZYWb/yVI sDdmgvutKJO4F49hOBUFgwSEtnrjj9XvQC14ng== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- drivers/pps/clients/pps-gpio.c | 1 + include/linux/pps-gpio.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c index dd7624f1d23f..35c3b14fc9b9 100644 --- a/drivers/pps/clients/pps-gpio.c +++ b/drivers/pps/clients/pps-gpio.c @@ -196,6 +196,7 @@ static int pps_gpio_probe(struct platform_device *pdev) data->info.owner = THIS_MODULE; snprintf(data->info.name, PPS_MAX_NAME_LEN - 1, "%s.%d", pdev->name, pdev->id); + data->info.echo = pps_gpio_echo; /* register PPS source */ pps_default_params = PPS_CAPTUREASSERT | PPS_OFFSETASSERT; diff --git a/include/linux/pps-gpio.h b/include/linux/pps-gpio.h index 0035abe41b9a..67f50e8dcd11 100644 --- a/include/linux/pps-gpio.h +++ b/include/linux/pps-gpio.h @@ -29,4 +29,6 @@ struct pps_gpio_platform_data { const char *gpio_label; }; +static void pps_gpio_echo(struct pps_device *pps, int event, void *data){} + #endif -- 2.16.1