lkml.org 
[lkml]   [2017]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v2 6/6] platform/x86: intel_pmc_ipc: Use generic Intel IPC device calls
On Sat, 02 Sep 2017, sathyanarayanan.kuppuswamy@linux.intel.com wrote:

> From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
>
> Removed redundant IPC helper functions and refactored the driver to use
> generic IPC device driver APIs.
>
> This patch also cleans-up PMC IPC user drivers to use APIs provided
> by generic IPC driver.
>
> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
> ---
> arch/x86/include/asm/intel_pmc_ipc.h | 37 +--

> drivers/mfd/intel_soc_pmic_bxtwc.c | 24 +-
> include/linux/mfd/intel_soc_pmic.h | 2 +

I'm a bit concerned by the API. Any reason why you're not using
pointers for addresses? And for the arguments where you are using
pointers, you should be using NULL, instead of 0.

> drivers/platform/x86/intel_pmc_ipc.c | 364 +++++++++-----------------
> drivers/platform/x86/intel_telemetry_pltdrv.c | 114 ++++----
> 5 files changed, 215 insertions(+), 326 deletions(-)
>
> Changes since v1:
> * Removed custom APIs.
> * Cleaned up PMC IPC user drivers to use APIs provided by generic
> IPC driver.

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

\
 
 \ /
  Last update: 2017-09-05 09:39    [W:0.207 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site