#include <linux/firmware.h>
#include <linux/slab.h>
-#define compat_firmware_to_dev(obj) container_of(obj, struct device, kobj)
+#define backport_firmware_to_dev(obj) container_of(obj, struct device, kobj)
MODULE_AUTHOR("Manuel Estrada Sainz");
MODULE_DESCRIPTION("Multi purpose firmware loading support");
char *buffer, loff_t offset, size_t count)
#endif
{
- struct device *dev = compat_firmware_to_dev(kobj);
+ struct device *dev = backport_firmware_to_dev(kobj);
struct firmware_priv *fw_priv = to_firmware_priv(dev);
struct firmware *fw;
ssize_t ret_count;
char *buffer, loff_t offset, size_t count)
#endif
{
- struct device *dev = compat_firmware_to_dev(kobj);
+ struct device *dev = backport_firmware_to_dev(kobj);
struct firmware_priv *fw_priv = to_firmware_priv(dev);
struct firmware *fw;
ssize_t retval;
* firmware image for this or any other device.
**/
int
-compat_request_firmware(const struct firmware **firmware_p, const char *name,
+request_firmware(const struct firmware **firmware_p, const char *name,
struct device *device)
{
int uevent = 1;
* release_firmware: - release the resource associated with a firmware image
* @fw: firmware resource to release
**/
-void compat_release_firmware(const struct firmware *fw)
+void release_firmware(const struct firmware *fw)
{
if (fw) {
if (!fw_is_builtin_firmware(fw))
* in atomic contexts.
**/
int
-compat_request_firmware_nowait(
+request_firmware_nowait(
struct module *module, int uevent,
const char *name, struct device *device, gfp_t gfp, void *context,
void (*cont)(const struct firmware *fw, void *context))