'\" t .\" Title: platform_device_add_data .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PLATFORM_DEVICE_ADD_" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" platform_device_add_data \- add platform\-specific data to a platform device .SH "SYNOPSIS" .HP \w'int\ platform_device_add_data('u .BI "int platform_device_add_data(struct\ platform_device\ *\ " "pdev" ", const\ void\ *\ " "data" ", size_t\ " "size" ");" .SH "ARGUMENTS" .PP \fIpdev\fR .RS 4 platform device allocated by platform_device_alloc to add resources to .RE .PP \fIdata\fR .RS 4 platform specific data for this platform device .RE .PP \fIsize\fR .RS 4 size of platform specific data .RE .SH "DESCRIPTION" .PP Add a copy of platform specific data to the platform device\*(Aqs platform_data pointer\&. The memory associated with the platform data will be freed when the platform device is released\&. .SH "COPYRIGHT" .br