cea_revision = drm_connector->display_info.cea_rev;
-#ifdef __linux__
strscpy(audio_info->display_name,
edid_caps->display_name,
AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS);
-#else
- strncpy(audio_info->display_name,
- edid_caps->display_name,
- AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS - 1);
-#endif
if (cea_revision >= 3) {
audio_info->mode_count = edid_caps->audio_mode_count;
mode->hdisplay = hdisplay;
mode->vdisplay = vdisplay;
mode->type &= ~DRM_MODE_TYPE_PREFERRED;
-#ifdef __linux__
strscpy(mode->name, name, DRM_DISPLAY_MODE_LEN);
-#else
- strncpy(mode->name, name, DRM_DISPLAY_MODE_LEN);
-#endif
return mode;
/* drop the reference we picked up in framebuffer lookup */
drm_framebuffer_put(buffer->fb);
-#ifdef __linux__
strscpy(buffer->fb->comm, client->name, TASK_COMM_LEN);
-#else
- strlcpy(buffer->fb->comm, client->name, TASK_COMM_LEN);
-#endif
return 0;
}