From: Gwendal Grignou <gwendal@chromium.org>
To: bleung@chromium.org, groeck@chromium.org,
myungjoo.ham@samsung.com, cw00.choi@samsung.com,
benjamin.tissoires@redhat.com, jic23@kernel.org,
dtor@chromium.org, hverkuil-cisco@xs4all.nl, mchehab@kernel.org,
lee.jones@linaro.org, pmalani@chromium.org, sre@kernel.org,
thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de,
lgirdwood@gmail.com, a.zummo@towertech.it, cychiang@chromium.org,
perex@perex.cz
Cc: linux-kernel@vger.kernel.org, Gwendal Grignou <gwendal@chromium.org>
Subject: [PATCH 01/17] plaform: chrome: Add PL_CHROMEOS export symbol namespace
Date: Wed, 5 Jan 2022 14:06:37 -0800 [thread overview]
Message-ID: <20220105220653.122451-2-gwendal@chromium.org> (raw)
In-Reply-To: <20220105220653.122451-1-gwendal@chromium.org>
Add PL_CHROMEOS to hold functions exposed by the platform chromeos
subsystem:
for i in EXPORT_SYMBOL_GPL EXPORT_SYMBOL; do
sed -i "s/$i(\([^)]*\)/$i_NS(\1, PL_CHROMEOS/"
$(grep -lr $i drivers/platform/chrome/)
done
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
---
drivers/platform/chrome/cros_ec_proto.c | 18 +++++++++---------
.../platform/chrome/cros_ec_sensorhub_ring.c | 4 ++--
drivers/platform/chrome/cros_usbpd_notify.c | 4 ++--
drivers/platform/chrome/wilco_ec/mailbox.c | 2 +-
drivers/platform/chrome/wilco_ec/properties.c | 8 ++++----
5 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c
index c4caf2e2de825f..2cfd7d97f6d737 100644
--- a/drivers/platform/chrome/cros_ec_proto.c
+++ b/drivers/platform/chrome/cros_ec_proto.c
@@ -189,7 +189,7 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
return EC_MSG_TX_PROTO_BYTES + msg->outsize;
}
-EXPORT_SYMBOL(cros_ec_prepare_tx);
+EXPORT_SYMBOL_NS(cros_ec_prepare_tx, PL_CHROMEOS);
/**
* cros_ec_check_result() - Check ec_msg->result.
@@ -217,7 +217,7 @@ int cros_ec_check_result(struct cros_ec_device *ec_dev,
return 0;
}
}
-EXPORT_SYMBOL(cros_ec_check_result);
+EXPORT_SYMBOL_NS(cros_ec_check_result, PL_CHROMEOS);
/*
* cros_ec_get_host_event_wake_mask
@@ -557,7 +557,7 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev)
kfree(proto_msg);
return ret;
}
-EXPORT_SYMBOL(cros_ec_query_all);
+EXPORT_SYMBOL_NS(cros_ec_query_all, PL_CHROMEOS);
/**
* cros_ec_cmd_xfer_status() - Send a command to the ChromeOS EC.
@@ -625,7 +625,7 @@ int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
return ret;
}
-EXPORT_SYMBOL(cros_ec_cmd_xfer_status);
+EXPORT_SYMBOL_NS(cros_ec_cmd_xfer_status, PL_CHROMEOS);
static int get_next_event_xfer(struct cros_ec_device *ec_dev,
struct cros_ec_command *msg,
@@ -767,7 +767,7 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev,
return ret;
}
-EXPORT_SYMBOL(cros_ec_get_next_event);
+EXPORT_SYMBOL_NS(cros_ec_get_next_event, PL_CHROMEOS);
/**
* cros_ec_get_host_event() - Return a mask of event set by the ChromeOS EC.
@@ -797,7 +797,7 @@ u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev)
return host_event;
}
-EXPORT_SYMBOL(cros_ec_get_host_event);
+EXPORT_SYMBOL_NS(cros_ec_get_host_event, PL_CHROMEOS);
/**
* cros_ec_check_features() - Test for the presence of EC features
@@ -830,7 +830,7 @@ bool cros_ec_check_features(struct cros_ec_dev *ec, int feature)
return !!(features->flags[feature / 32] & EC_FEATURE_MASK_0(feature));
}
-EXPORT_SYMBOL_GPL(cros_ec_check_features);
+EXPORT_SYMBOL_NS_GPL(cros_ec_check_features, PL_CHROMEOS);
/**
* cros_ec_get_sensor_count() - Return the number of MEMS sensors supported.
@@ -896,7 +896,7 @@ int cros_ec_get_sensor_count(struct cros_ec_dev *ec)
}
return sensor_count;
}
-EXPORT_SYMBOL_GPL(cros_ec_get_sensor_count);
+EXPORT_SYMBOL_NS_GPL(cros_ec_get_sensor_count, PL_CHROMEOS);
/**
* cros_ec_command - Send a command to the EC.
@@ -944,4 +944,4 @@ int cros_ec_command(struct cros_ec_device *ec_dev,
kfree(msg);
return ret;
}
-EXPORT_SYMBOL_GPL(cros_ec_command);
+EXPORT_SYMBOL_NS_GPL(cros_ec_command, PL_CHROMEOS);
diff --git a/drivers/platform/chrome/cros_ec_sensorhub_ring.c b/drivers/platform/chrome/cros_ec_sensorhub_ring.c
index 98e37080f76091..fa6292e49a93e4 100644
--- a/drivers/platform/chrome/cros_ec_sensorhub_ring.c
+++ b/drivers/platform/chrome/cros_ec_sensorhub_ring.c
@@ -86,7 +86,7 @@ int cros_ec_sensorhub_register_push_data(struct cros_ec_sensorhub *sensorhub,
return 0;
}
-EXPORT_SYMBOL_GPL(cros_ec_sensorhub_register_push_data);
+EXPORT_SYMBOL_NS_GPL(cros_ec_sensorhub_register_push_data, PL_CHROMEOS);
void cros_ec_sensorhub_unregister_push_data(struct cros_ec_sensorhub *sensorhub,
u8 sensor_num)
@@ -94,7 +94,7 @@ void cros_ec_sensorhub_unregister_push_data(struct cros_ec_sensorhub *sensorhub,
sensorhub->push_data[sensor_num].indio_dev = NULL;
sensorhub->push_data[sensor_num].push_data_cb = NULL;
}
-EXPORT_SYMBOL_GPL(cros_ec_sensorhub_unregister_push_data);
+EXPORT_SYMBOL_NS_GPL(cros_ec_sensorhub_unregister_push_data, PL_CHROMEOS);
/**
* cros_ec_sensorhub_ring_fifo_enable() - Enable or disable interrupt generation
diff --git a/drivers/platform/chrome/cros_usbpd_notify.c b/drivers/platform/chrome/cros_usbpd_notify.c
index 91ce6be91aac16..3a5a14b8175347 100644
--- a/drivers/platform/chrome/cros_usbpd_notify.c
+++ b/drivers/platform/chrome/cros_usbpd_notify.c
@@ -38,7 +38,7 @@ int cros_usbpd_register_notify(struct notifier_block *nb)
return blocking_notifier_chain_register(&cros_usbpd_notifier_list,
nb);
}
-EXPORT_SYMBOL_GPL(cros_usbpd_register_notify);
+EXPORT_SYMBOL_NS_GPL(cros_usbpd_register_notify, PL_CHROMEOS);
/**
* cros_usbpd_unregister_notify - Unregister notifier callback for PD events.
@@ -51,7 +51,7 @@ void cros_usbpd_unregister_notify(struct notifier_block *nb)
{
blocking_notifier_chain_unregister(&cros_usbpd_notifier_list, nb);
}
-EXPORT_SYMBOL_GPL(cros_usbpd_unregister_notify);
+EXPORT_SYMBOL_NS_GPL(cros_usbpd_unregister_notify, PL_CHROMEOS);
static void cros_usbpd_get_event_and_notify(struct device *dev,
struct cros_ec_device *ec_dev)
diff --git a/drivers/platform/chrome/wilco_ec/mailbox.c b/drivers/platform/chrome/wilco_ec/mailbox.c
index 0f98358ea824c6..edbe90a68d53c7 100644
--- a/drivers/platform/chrome/wilco_ec/mailbox.c
+++ b/drivers/platform/chrome/wilco_ec/mailbox.c
@@ -212,4 +212,4 @@ int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg)
return ret;
}
-EXPORT_SYMBOL_GPL(wilco_ec_mailbox);
+EXPORT_SYMBOL_NS_GPL(wilco_ec_mailbox, PL_CHROMEOS);
diff --git a/drivers/platform/chrome/wilco_ec/properties.c b/drivers/platform/chrome/wilco_ec/properties.c
index c2bf4c95c5d2c9..011daac4de2f66 100644
--- a/drivers/platform/chrome/wilco_ec/properties.c
+++ b/drivers/platform/chrome/wilco_ec/properties.c
@@ -76,7 +76,7 @@ int wilco_ec_get_property(struct wilco_ec_device *ec,
return 0;
}
-EXPORT_SYMBOL_GPL(wilco_ec_get_property);
+EXPORT_SYMBOL_NS_GPL(wilco_ec_get_property, PL_CHROMEOS);
int wilco_ec_set_property(struct wilco_ec_device *ec,
struct wilco_ec_property_msg *prop_msg)
@@ -99,7 +99,7 @@ int wilco_ec_set_property(struct wilco_ec_device *ec,
return 0;
}
-EXPORT_SYMBOL_GPL(wilco_ec_set_property);
+EXPORT_SYMBOL_NS_GPL(wilco_ec_set_property, PL_CHROMEOS);
int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id,
u8 *val)
@@ -119,7 +119,7 @@ int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id,
return 0;
}
-EXPORT_SYMBOL_GPL(wilco_ec_get_byte_property);
+EXPORT_SYMBOL_NS_GPL(wilco_ec_get_byte_property, PL_CHROMEOS);
int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
u8 val)
@@ -132,4 +132,4 @@ int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
return wilco_ec_set_property(ec, &msg);
}
-EXPORT_SYMBOL_GPL(wilco_ec_set_byte_property);
+EXPORT_SYMBOL_NS_GPL(wilco_ec_set_byte_property, PL_CHROMEOS);
--
2.34.1.448.ga2b2bfdf31-goog
next prev parent reply other threads:[~2022-01-05 22:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 22:06 [PATCH 00/17] Add export symbol namespace PL_CHROMEOS Gwendal Grignou
2022-01-05 22:06 ` Gwendal Grignou [this message]
2022-01-05 22:06 ` [PATCH 02/17] iio:cros_ec_sensors: Add PL_CHROMEOS dependency Gwendal Grignou
2022-01-05 22:06 ` [PATCH 03/17] platform/chrome: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 04/17] power_supply: chromeos: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 05/17] rtc: wilco: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 06/17] mfd: cros_ec_dev: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 07/17] platform: chrome: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 08/17] rtc: cros_ec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 09/17] extcon: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 10/17] HID: google: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 11/17] i2c: cros-ec-tunnel: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 12/17] Input: cros_ec_keyb - " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 13/17] media: cros-ec-cec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 14/17] power: supply: PCHG: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 15/17] pwm: cros-ec: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 16/17] regulator: cros-ec-regulator: " Gwendal Grignou
2022-01-05 22:06 ` [PATCH 17/17] ASoC: cros_ec_codec: " Gwendal Grignou
2022-01-05 22:50 ` [PATCH 00/17] Add export symbol namespace PL_CHROMEOS Dmitry Torokhov
2022-01-06 4:26 ` Gwendal Grignou
2022-01-06 10:05 ` Mauro Carvalho Chehab
2022-01-10 9:31 ` Gwendal Grignou
2022-01-16 17:57 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220105220653.122451-2-gwendal@chromium.org \
--to=gwendal@chromium.org \
--cc=a.zummo@towertech.it \
--cc=benjamin.tissoires@redhat.com \
--cc=bleung@chromium.org \
--cc=cw00.choi@samsung.com \
--cc=cychiang@chromium.org \
--cc=dtor@chromium.org \
--cc=groeck@chromium.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jic23@kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=perex@perex.cz \
--cc=pmalani@chromium.org \
--cc=sre@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®