Skip to content

Commit

Permalink
mfd: Rename mfd_shared_cell_{en,dis}able to drop the "shared" part
Browse files Browse the repository at this point in the history
As requested by Samuel, there's not really any reason to have "shared"
in the name.

This also modifies the only user of the function, as well.

Signed-off-by: Andres Salomon <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
dilinger authored and Samuel Ortiz committed Mar 23, 2011
1 parent 7e5dc1f commit f77289a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions arch/x86/platform/olpc/olpc-xo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static int __devinit olpc_xo1_probe(struct platform_device *pdev)
if (!machine_is_olpc())
return -ENODEV;

err = mfd_shared_cell_enable(pdev);
err = mfd_cell_enable(pdev);
if (err)
return err;

Expand All @@ -88,7 +88,7 @@ static int __devinit olpc_xo1_probe(struct platform_device *pdev)

static int __devexit olpc_xo1_remove(struct platform_device *pdev)
{
mfd_shared_cell_disable(pdev);
mfd_cell_disable(pdev);

if (strcmp(pdev->name, "olpc-xo1-pms") == 0)
pms_base = 0;
Expand Down
8 changes: 4 additions & 4 deletions drivers/mfd/mfd-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/pm_runtime.h>
#include <linux/slab.h>

int mfd_shared_cell_enable(struct platform_device *pdev)
int mfd_cell_enable(struct platform_device *pdev)
{
const struct mfd_cell *cell = mfd_get_cell(pdev);
int err = 0;
Expand All @@ -33,9 +33,9 @@ int mfd_shared_cell_enable(struct platform_device *pdev)

return err;
}
EXPORT_SYMBOL(mfd_shared_cell_enable);
EXPORT_SYMBOL(mfd_cell_enable);

int mfd_shared_cell_disable(struct platform_device *pdev)
int mfd_cell_disable(struct platform_device *pdev)
{
const struct mfd_cell *cell = mfd_get_cell(pdev);
int err = 0;
Expand All @@ -53,7 +53,7 @@ int mfd_shared_cell_disable(struct platform_device *pdev)

return err;
}
EXPORT_SYMBOL(mfd_shared_cell_disable);
EXPORT_SYMBOL(mfd_cell_disable);

static int mfd_add_device(struct device *parent, int id,
const struct mfd_cell *cell,
Expand Down
4 changes: 2 additions & 2 deletions include/linux/mfd/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ struct mfd_cell {
* being called only when a device is first being enabled or no other
* clients are making use of it.
*/
extern int mfd_shared_cell_enable(struct platform_device *pdev);
extern int mfd_shared_cell_disable(struct platform_device *pdev);
extern int mfd_cell_enable(struct platform_device *pdev);
extern int mfd_cell_disable(struct platform_device *pdev);

/*
* Given a platform device that's been created by mfd_add_devices(), fetch
Expand Down

0 comments on commit f77289a

Please sign in to comment.