Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1660532ybg; Wed, 29 Jul 2020 22:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzCm8wEtgwSuApwOK8pyvKsirTSLFPrdlOXB4gxtvc+0j1aalocJbbA6yRnKxQuEpp0vCH X-Received: by 2002:a17:907:7245:: with SMTP id ds5mr886228ejc.507.1596085981567; Wed, 29 Jul 2020 22:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596085981; cv=none; d=google.com; s=arc-20160816; b=drjjVahEdbPiWyMmhqN4u9csBFGVP9uLpB77qNCmSjf8MZ1zY8Z1YUflCv16CSJt/f mxwaRMacRifncjlkqxU4fQM0+sIcGAmUOC/aMklZKhuRehPXvEDpyu7RIhLqmXIywfno Ipm0T4EZlkTb+mU90EGcS3uJBDU56Vp5eFlub8UFSigVZ7BBzA3iOli09v+D0zB41Q/9 JuJUiuLu9zf+8kzCmTtSUqoRw5k0D2rsjdgMDCFyizbgKN2NqM2d0vXpkUW0Q0RhITts OHooPcNaSPyGEqRx+vqRQUkS1KZNTcX30hQdqEyXzyV5yY56oxAgnwdmKDGuFfXv36Rs vbRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3Vkw/8crPqmhVB2Zcyh0SoqmwjZCclFsRnwB76cJQ0w=; b=HHhXsF+z5XlALOtNAgvp3nwr4lg1cw/yelmHYp6igebdJIbd8DekttIiXgBPurilOW Ml2/bN6PRz/osOk3dU1z7OI4Zft4V7dWi0EF7ywfO1/u3Z57we3rE7Lk/+VWzwieKpiH rd7q02b0vgc0rEN01lETzcLeLemqMQJpAE0UMaRz5Ie5xpixFG2N5f8omyyhWs7o005Q zImlUwaSp6XhJJHSET9/mfEP18iiacNvKZWhpf0svhUl5z2z3jmX2qtjcaNUso/dPUvu remTSpbqJRLylVRURdqVYULFA5v835D2VP8yUDTJ4tHsNqJV9lJz67OzXC19KxrHA3Sb WS9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vfT1P3WG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si2970569eda.58.2020.07.29.22.12.39; Wed, 29 Jul 2020 22:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vfT1P3WG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728578AbgG3FKS (ORCPT + 99 others); Thu, 30 Jul 2020 01:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgG3FKS (ORCPT ); Thu, 30 Jul 2020 01:10:18 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C7CC061794; Wed, 29 Jul 2020 22:10:17 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id d1so13135960plr.8; Wed, 29 Jul 2020 22:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3Vkw/8crPqmhVB2Zcyh0SoqmwjZCclFsRnwB76cJQ0w=; b=vfT1P3WGIsMFyWgzAeDSPjrX3k6/wgMcQwpcVeG1XYoe0HNZd2ApnUmvCtIFQVnZLE yVQKnl4GVlnw4vOAD8rU+EWGf95i9xhoG1u1r/LYJ5Hwnd0oyGDVpfkOnGDH3cvkYy5r MjAcpE4QijWE0Owfvj2X9a9IPLIFTkhiuOFPmzwlUrpyj3Dle8u0i2Raq2wvKm6XGSTz zVFm+qKk88/axVw/ktK2phYFMf7eSRgjVI4hakDITkJt3FKSuK142npj/oAU0DRhZAxu LNrJpCJOkAiRA2cxjVpRl57JGlb1OCyrGJoeqMP96M8F8ya6k5NDGsPLX1UUNjBMNpSx EiUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3Vkw/8crPqmhVB2Zcyh0SoqmwjZCclFsRnwB76cJQ0w=; b=aXzdvExFUeWY+OZypaqx1enJUK9GkxJuOmayX4etSR5QjlJEEo4HSuynhaqjhmHaym ay2XdXTsVujmE1TrYfxP46xzbT1KjmnImVbkvmboK5koYJU2wylP+cr6yN8Z6ubjB/SE FOZcqSZqn3c4h5cJoBVVNTuRGcq9nz/i+s2MA8D6AR+JMdIlaGO97f59h2GDGX/mvHPJ lgkJaXWmRZdvdRY6n1Bj4Q9LEYvJk2iOO2FvKWjiNSg0lDAjCM/t7P/NtqpZwIoQV1Cw +68JQTZtcCX/eBxDPMxK4LBsJKvE1n684I1JsYUlTCtzCC+Fg/X8l5y+MVUpOd7qbQB5 vl1w== X-Gm-Message-State: AOAM533BdgQb+NvzRLfGqkJXus29P/dghxlhJRvk0jQFHffarZX2knaR pK5GxVIcSNs1flTueOhVroA= X-Received: by 2002:a17:90a:3c8f:: with SMTP id g15mr1328728pjc.215.1596085816692; Wed, 29 Jul 2020 22:10:16 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id f27sm415310pfk.217.2020.07.29.22.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 22:10:16 -0700 (PDT) Date: Wed, 29 Jul 2020 22:10:13 -0700 From: Dmitry Torokhov To: Roy Im Cc: Uwe Kleine-Koenig , Bartosz Golaszewski , Brian Masney , Greg KH , Lee Jones , Luca Weiss , Maximilian Luz , Pascal PAILLET-LME , Rob Herring , Samuel Ortiz , Thierry Reding , Thomas Gleixner , Support Opensource , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pwm@vger.kernel.org" Subject: Re: [PATCH v18 3/3] Input: new da7280 haptic driver Message-ID: <20200730051013.GB1665100@dtor-ws> References: <23b3470401ec5cf525add8e1227cb67586b9f294.1595991580.git.Roy.Im@diasemi.com> <20200729063638.GY1665100@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 02:09:48PM +0000, Roy Im wrote: > Hello Dmitry and Uwe, > > Wednesday, July 29, 2020 3:37 PM, Dmitry Torokhov wrote: > > > On Wed, Jul 29, 2020 at 11:59:40AM +0900, Roy Im wrote: > > > Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple > > > mode and integrated waveform memory and wideband support. > > > It communicates via an I2C bus to the device. > > > > A few questions/suggestions... > > > > > > > > Reviewed-by: Jes Sorensen . > > > > > > Signed-off-by: Roy Im > > > > > > --- > > > v18: > > > - Corrected comments in Kconfig > > > - Updated to preferred style for multi line comments in c file. > > > v17: > > > - fixed an issue. > > > v16: > > > - Corrected some code and updated description in Kconfig. > > > v15: > > > - Removed some defines and updated some comments. > > > v14: > > > - Updated pwm related code, alignments and comments. > > > v13: > > > - Updated some conditions in pwm function and alignments. > > > v12: No changes. > > > v11: > > > - Updated the pwm related code, comments and typo. > > > v10: > > > - Updated the pwm related function and added some comments. > > > v9: > > > - Removed the header file and put the definitions into the c file. > > > - Updated the pwm code and error logs with %pE > > > > I believe the %pE is to format an escaped buffer, you probably want to %pe (lowercase) to print errors. I am also not quite sure > > if we want to use it in cases when we have non-pointer error, or we should stick with %d as most of the kernel does. > > Right, it should be %pe as you and Uwe said, Uwe suggested %pe to understand easier.. do you still prefer to stick with %d? Depends on the situation. If you already have ERR_PTR-encoded error there is no reason for not using %pe, but if you have integer error, or you have already converted pointer to integer I'd prefer we stick with %d. As I mentioned in another message maybe we should consider adding '%de' or similar for formatting integer errors. Thanks. -- Dmitry