From mboxrd@z Thu Jan 1 00:00:00 1970 From: Loic PALLARDY Subject: Re: [PATCH v2 2/2] mailbox: split internal header from API header Date: Tue, 6 Nov 2012 13:53:29 +0100 Message-ID: <50990849.4050003@st.com> References: <1352170552-29564-1-git-send-email-omar.luna@linaro.org> <1352170552-29564-3-git-send-email-omar.luna@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from eu1sys200aog116.obsmtp.com ([207.126.144.141]:52069 "EHLO eu1sys200aog116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454Ab2KFMzG convert rfc822-to-8bit (ORCPT ); Tue, 6 Nov 2012 07:55:06 -0500 In-Reply-To: <1352170552-29564-3-git-send-email-omar.luna@linaro.org> Content-Language: en-US Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Omar Ramirez Luna Cc: Greg Kroah-Hartman , Russell King , Tony Lindgren , Janusz Krzysztofik , Arnd Bergmann , Ohad Ben-Cohen , Mark Brown , Dom Cobley , Wim Van Sebroeck , Linus Walleij , Suman Anna , Juan Gutierrez , Felipe Contreras , Tejun Heo , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" On 11/06/2012 03:55 AM, Omar Ramirez Luna wrote: > Now internal structures can remain hidden to the user and just API > related functions and defines are made available. > > Signed-off-by: Omar Ramirez Luna > --- > drivers/mailbox/mailbox.c | 34 ++++++++++++++++++++++++++++++++ > drivers/mailbox/mailbox.h | 48 +-------------------------------------------- > include/linux/mailbox.h | 22 +++++++++++++++++++ I agree with the file split but I think mailbox framework API should be more generic. omap_ prefix should not be used. mailbox_ prefix will be better. Message type must be more opened like for example: struct mailbox_msg { int size; unsigned char header; unsigned char *pdata; }; Regards, Loic From mboxrd@z Thu Jan 1 00:00:00 1970 From: loic.pallardy@st.com (Loic PALLARDY) Date: Tue, 6 Nov 2012 13:53:29 +0100 Subject: [PATCH v2 2/2] mailbox: split internal header from API header In-Reply-To: <1352170552-29564-3-git-send-email-omar.luna@linaro.org> References: <1352170552-29564-1-git-send-email-omar.luna@linaro.org> <1352170552-29564-3-git-send-email-omar.luna@linaro.org> Message-ID: <50990849.4050003@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 11/06/2012 03:55 AM, Omar Ramirez Luna wrote: > Now internal structures can remain hidden to the user and just API > related functions and defines are made available. > > Signed-off-by: Omar Ramirez Luna > --- > drivers/mailbox/mailbox.c | 34 ++++++++++++++++++++++++++++++++ > drivers/mailbox/mailbox.h | 48 +-------------------------------------------- > include/linux/mailbox.h | 22 +++++++++++++++++++ I agree with the file split but I think mailbox framework API should be more generic. omap_ prefix should not be used. mailbox_ prefix will be better. Message type must be more opened like for example: struct mailbox_msg { int size; unsigned char header; unsigned char *pdata; }; Regards, Loic