Re: [MeeGo-Dev][PATCH] Topcliff: Update PCH_IEEE1588 driver to 2.6.35

Previous thread: Important: Email Account Verification Update!!! by Hardy, Gil on Tuesday, August 10, 2010 - 8:50 pm. (1 message)

Next thread: [GIT PULL] battery-2.6.git by Anton Vorontsov on Tuesday, August 10, 2010 - 10:17 pm. (1 message)
From: Masayuki Ohtake
Date: Tuesday, August 10, 2010 - 9:34 pm

Hi Qi-san

I have found Macro 'TRUE' and 'FALSE' are used as setting value in the driver; still,
can't I use TRUE/FALSE macro ?
If not, How should we implement ?

+static u32 pch_interrupt_pending(struct pch_dev *pch_pdata)
+{
+
+ if (pch_pps_evt_get(pch_pdata) || pch_amms_evt_get(pch_pdata) ||
+     pch_asms_evt_get(pch_pdata) || pch_ttm_evt_get(pch_pdata)) {
+ pending = TRUE;
+ } else {
+ pending = FALSE;
+ }

+static enum pch_status
+pch_ptp_port_config_set(enum pch_ptpport ptpport,
+{
+
+ if (ptpportmode == PCH_1588PTP_PORT_MASTER) {
+ master_mode = TRUE;
+ timestamp_set = FALSE;
+ } else if (ptpportmode == PCH_1588PTP_PORT_SLAVE) {
+ master_mode = FALSE;
+ timestamp_set = FALSE;
+ } else if (ptpportmode == PCH_1588PTP_PORT_ANYMODE) {
+ master_mode = FALSE;
+ timestamp_set = TRUE;
+ } else {

Thanks, Ohtake

----- Original Message ----- 
From: "Masayuki Ohtake" <masa-korg@dsn.okisemi.com>
To: "Wang, Qi" <qi.wang@intel.com>; "Greg KH" <gregkh@suse.de>
Cc: <arjan@linux.intel.com>; "Khor, Andrew Chih Howe" <andrew.chih.howe.khor@intel.com>; "Wang, Yong Y"
<yong.y.wang@intel.com>; "LKML" <linux-kernel@vger.kernel.org>; <meego-dev@meego.com>
Sent: Wednesday, August 11, 2010 11:31 AM


--

From: Greg KH
Date: Tuesday, August 10, 2010 - 9:39 pm

Use the 'bool' type, and 'true' and/or 'false' keywords instead.  That
is the proper C idiom.

thanks,

greg k-h
--

From: Masayuki Ohtake
Date: Tuesday, August 10, 2010 - 11:30 pm

I can do well.

Thanks, Ohtake.

----- Original Message ----- 
From: "Greg KH" <gregkh@suse.de>
To: "Masayuki Ohtake" <masa-korg@dsn.okisemi.com>
Cc: "Wang, Qi" <qi.wang@intel.com>; <meego-dev@meego.com>; "LKML" <linux-kernel@vger.kernel.org>; "Wang, Yong Y"
<yong.y.wang@intel.com>; "Khor, Andrew Chih Howe" <andrew.chih.howe.khor@intel.com>; <arjan@linux.intel.com>
Sent: Wednesday, August 11, 2010 1:39 PM


--

Previous thread: Important: Email Account Verification Update!!! by Hardy, Gil on Tuesday, August 10, 2010 - 8:50 pm. (1 message)

Next thread: [GIT PULL] battery-2.6.git by Anton Vorontsov on Tuesday, August 10, 2010 - 10:17 pm. (1 message)