aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/smu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 34f3c7e2d832..a931e508feb6 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -845,6 +845,18 @@ int smu_queue_i2c(struct smu_i2c_cmd *cmd)
845 return 0; 845 return 0;
846} 846}
847 847
848struct smu_sdbp_header *smu_get_sdb_partition(int id, unsigned int *size)
849{
850 char pname[32];
851
852 if (!smu)
853 return NULL;
854
855 sprintf(pname, "sdb-partition-%02x", id);
856 return (struct smu_sdbp_header *)get_property(smu->of_node,
857 pname, size);
858}
859EXPORT_SYMBOL(smu_get_sdb_partition);
848 860
849 861
850/* 862/*